<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" style="height:100%;">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="referrer" content="always">
<meta content="no-cache,must-revalidate" http-equiv="Cache-Control">
<meta content="no-cache" http-equiv="pragma">
<meta content="0" http-equiv="expires">
<meta name="referrer" content="always">
<meta content="telephone=no, address=no" name="format-detection">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
<meta name="apple-mobile-web-app-capable" content="yes" /> <!-- apple devices fullscreen -->
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<title>参与活动赢大奖</title>
<meta id="_TOKEN" value="8a7ec72513b6f4c816fface3b41c26b0" type="hidden" />
<script type='text/javascript'>

var fromCanal = '-1';
if(false){
    parent = top = window;
}

    // document.domain = 'fkw.com';

    var g_serverTime = 1535963736345;
    var g_timeDeviation = g_serverTime - new Date().getTime(); //服务器时间与系统时间偏差
    var g_rem = 20;
    (function(win){
        var orientationX = false; //是否横屏进来
        if(win.orientation==90||win.orientation==-90){
            orientationX = true;
        }
        var docEl = win.document.documentElement,tid;
        function refreshRem1(){
            g_rem = docEl.getBoundingClientRect().width/16;
            !g_rem && (g_rem = 20);
            docEl.style.fontSize = g_rem + 'px';
        }
        function refreshRem2(){
            g_rem = docEl.getBoundingClientRect().width/16;
            if(!g_rem){
                return refreshRem1();
            }
            var width = docEl.getBoundingClientRect().width;
            var d = win.document.createElement('div');
            d.style.width = '1rem';
            d.style.display = "none";
            docEl.firstElementChild.appendChild(d);
            var defaultFontSize = parseFloat(window.getComputedStyle(d, null).getPropertyValue('width'));
            docEl.firstElementChild.removeChild(d);
            docEl.style.fontSize = (g_rem/defaultFontSize)*100 + '%';
        }
        var refreshRem = /HUAWEI TIT-TL00/i.test(navigator.userAgent) || /ONEPLUS A5000/i.test(navigator.userAgent) ? refreshRem2 : refreshRem1;
        try{
            win.addEventListener("orientationchange", function() {//触发手机横屏竖屏事件
                if(orientationX){
                    location.reload();
                }
            }, false);
        }catch(e){}
        win.addEventListener('pageshow', function(e) {
            if (e.persisted) {
                clearTimeout(tid);
                tid = setTimeout(refreshRem, 100);
            }
        }, false);
        refreshRem();
    })(window);
    function loadGamePreAssets(){}
</script>

<link href="css/base2.min.css?v=201808211430" rel="stylesheet" type="text/css" />
<link href="css/xydzp.min.css?v=201806041718" rel="stylesheet" type="text/css" />
<link href="css/weui.min.css?v=201712181935" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>


<script type="text/javascript">  
(function() { 
var fs = document.createElement("script"); 
fs.src = "//fe.faisys.com/jssdk_1_0/js/hawkEye.min.js?v=201807231924";
window.FAI_HAWK_EYE = {}; 
window.FAI_HAWK_EYE.jssdk_report_url = "//report.fkw.com/js/report"; 
window.FAI_HAWK_EYE.jssdk_appid = 5002; 
window.FAI_HAWK_EYE.fai_aid = 13751381; 
window.FAI_HAWK_EYE.fai_bs_aid = 13751381; 
window.FAI_HAWK_EYE.fai_bs_id = 4; 
window.FAI_HAWK_EYE.fai_bs_wid = 0; 
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(fs, s);
})();</script>

</head>
<body class="activity-lottery-winning body">


<!-- 广告页 -->
<div class="advertisingBox swiper-container hide">
  <div class="swiper-wrapper"><!--内容自动添加--></div>
  <div class="swiper-pagination hide"></div>
  
    
    <div class="skipTips">
      <span class="seconds">3秒</span><!--
  --><span class="skipTipsText">跳过</span>
    </div>
  
</div>    
<div class="ajaxLoadBg">
    <div class="ajaxLoadBar "></div>
</div>  

<div class="main home " style="height:25.728rem;">

    <div class="editTarget-homeBoxBg">
        <div id="logoImgBox" class="logoImgBox imgContainer absCenter hide" style="">
            <img id="logoImg" class="slaveImg abs" src="img/nopic.jpg" style="width:2rem;height:2rem;top:3.5rem;left:0.75rem;"/>
        </div>
        <div>
            <div class="titleImg" style="position: relative; height: 7.5rem;">
                <div>
                    <img id="titleBox" class="editTarget-titleBox"/>
                </div>
            </div>
            <div id="outercont"> 
                <div id="outer-cont" class="editTarget-wrap"> 
                    
                    <img id='outerImg' class='editTarget-rotatePan' />
                    <img class="editTarget-deviceLine hide abs">
                    <div id="newAwardShow"></div>
                    <div id="newAwardBox" class="hide"></div>
                    
                </div>
                <div id="inner" class='startBtnImg'>
                    <img />
                </div>
                <div class='outer-background'></div>
            </div> 
            <div class="content">
                <div id='contentArea' style="margin-bottom:3rem;">
                    <div class="theTextLimitBox"></div>
                    <div class='center_txt' style="margin-bottom:1rem;position:relative;height:2.25rem;"> 
                        <div id='joinNumLine' class='txt_style_1 joinNumLine absCenter' style='top:0rem;left:3.6rem;color:rgb(250, 82, 8);font-size:0.6rem; text-shadow:rgb(255, 255, 255) 1px 0px 0px, rgb(255, 255, 255) -1px 0px 0px, rgb(255, 255, 255) 0px 1px 0px, rgb(255, 255, 255) 0px -1px 0px;'>
                已有<span id='joinNum' style="color:rgb(250, 82, 8);font-size:0.6rem;text-shadow:rgb(255, 255, 255) 1px 0px 0px, rgb(255, 255, 255) -1px 0px 0px, rgb(255, 255, 255) 0px 1px 0px, rgb(255, 255, 255) 0px -1px 0px;" class='ipt_num'>0</span>人参与</div>
                        
                        <div id="drawInfo" class="txt_style_1 absCenter editTarget-drawInfo" style="top:1.25rem;left:2.5rem;" >
                            <div class="hide dayDraw4Total">今天可抽 <span class="count specil dayDrawCount ipt_num">3</span> 次</div>
                            <div class="hide totalDraw">您还有 <span class="totalDrawCount specil ipt_num">6</span> 次抽奖机会</div>
                            <div class="dayDraw">您今天还有 <span id="count" class="ipt_num specil dayDrawCount">3</span> 次抽奖机会</div>
                        </div>
                        
                    </div>  
                </div> 
                 
                <div id="WinnersBox" style="padding: 0 0.4rem;" class="showAwardBox poupMainBox rowSpacing">
                    <div class="editBox editTarget-WinnersBox"></div>
                
                    <div id="winnerSlideBox" class="winnerSlideBox">
                        <div id="slideExample">
                            <div class="uerItem"><img src="img/iconImg.png"/><span class="winner">范女神获得了&nbsp;&nbsp;</span><span class="slideAwardName" >价值100元礼品</span></div>
                            <div class="uerItem"><img src="img/iconImg.png"/><span class="winner">小星儿获得了&nbsp;&nbsp;</span><span class="slideAwardName" >价值50元礼品</span></div>
                            <div class="uerItem"><img src="img/iconImg.png"/><span class="winner">LVYD获得了&nbsp;&nbsp;</span><span class="slideAwardName" >价值10元礼品</span></div>
                        </div>
                    </div>
                </div> 
                <div id="myAwardBox" class="poupMainBox">
                    <div class="titleImgBox editTarget-myAwardImg"> </div>
                    <div class="awardBoxBg editTarget-myAwardBox"></div>
                    <div id="myAwardInfo" class="rowSpacing">
                        <div class=''>
                            <div><div class='awardLimitBox'><span class='awardText awardLevel'>一等奖</span><span class='colon'>：</span><span class='awardText awardNameDef'>价值100元礼品</span></div><span class='awardInfoDetail'>查看详情</span></div>
<div class='infoDeviceLine'></div>
<div><div class='awardLimitBox'><span class='awardText awardLevel'>二等奖</span><span class='colon'>：</span><span class='awardText awardNameDef'>价值50元礼品</span></div><span class='awardInfoDetail'>查看详情</span></div>
<div class='infoDeviceLine'></div>
<div><div class='awardLimitBox'><span class='awardText awardLevel'>三等奖</span><span class='colon'>：</span><span class='awardText awardNameDef'>价值10元礼品</span></div><span class='awardInfoDetail'>查看详情</span></div>
<div class='infoDeviceLinehide'></div>

                        </div>
                    </div> 
                </div>
                <div id="awardInfoBox">
                    <div id="awardContactInfo" class="poupMainBox">
                        <div class="titleImgBox editTarget-contactInfoImg"> </div>
                        <div class="infoBoxBg editTarget-awardContactInfo"></div>
                        <div class="rowSpacing contactGroup">
                            <div class="contactItem contactName ">姓名： <span>monica</span></div>
                            <div class="contactItem contactPhone ">电话： <span>13200000000</span></div>
                            <div class="contactItem contactAddress ">地址： <span>广东省广州市海...</span></div>
                        </div>
                        <div class="updateBtn modifyBtn">修改</div>
                    </div>
                </div>
                <div id="actExplain" class="poupMainBox ">
                    <div class="titleImgBox editTarget-activeRuleImg"></div>
                    <div class="ruleBoxBg editTarget-ruleBox"></div>
                    <div id="ruleBox" >
                        <div id="activeRuleInfoBox" class="poupMainInfo poupMain">
                            <div id="awardLine" class="rowSpacing poupLine" data-sortKey="a">
                                <div class="titleTextBox"><div class="awardTitleText">活动奖品</div></div>
                                <div id="awardLineBox" class="awardDetailText">
                                    <div class='unComfortLine awardItem '><span class='awardStyle'>一等奖</span> : <span class='award'>价值100元礼品</span></div>
<div class='unComfortLine awardItem '><span class='awardStyle'>二等奖</span> : <span class='award'>价值50元礼品</span></div>
<div class='unComfortLine awardItem '><span class='awardStyle'>三等奖</span> : <span class='award'>价值10元礼品</span></div>
<div class='unComfortLine awardItem hide'><span class='awardStyle'>四等奖</span> : <span class='award'>价值5元小礼品</span></div>
<div class='unComfortLine awardItem hide'><span class='awardStyle'>五等奖</span> : <span class='award'>价值5元小礼品</span></div>
<div class='unComfortLine awardItem hide'><span class='awardStyle'>六等奖</span> : <span class='award'>价值5元小礼品</span></div>
<div class='unComfortLine awardItem hide'><span class='awardStyle'>七等奖</span> : <span class='award'>价值5元小礼品</span></div>
<div class='unComfortLine awardItem hide'><span class='awardStyle'>八等奖</span> : <span class='award'>价值5元小礼品</span></div>
<div class='awardItem anwei hide'><span class='awardStyle'>安慰奖</span> : <span class='award'>价值5元小礼品</span></div>

                                </div>
                                <div id="selfAwardLine" class="awardDetailText hide" style="word-wrap: break-word;"></div>
                                <div class="infoDeviceLine ruleBoxLine"></div>
                            </div>
                            
                            <div id="gameDateTime" class="rowSpacing poupLine" data-sortKey="b">
                                <div class="titleTextBox"><div class="awardTitleText">活动时间</div></div>
                                <div class="awardDetailText"><span id="startDate">2018年9月3日 10:07</span>-<span id="endDate">2018年9月10日 10:07</span></div>
                                <div class="infoDeviceLine ruleBoxLine"></div>
                            </div>
                            
                            <div id="activeHost" class="hostLine rowSpacing poupLine" data-sortKey="c">
                                <div class="titleTextBox"><div class="awardTitleText">活动主办单位</div></div>
                                <div class="awardDetailText"><a class="hostName" onclick='return false' href="" />-</a></div>
                                <div class="infoDeviceLine ruleBoxLine"></div>
                            </div>
                            
                            
                            <div id="skillLine" class="rowSpacing poupLine skillLine" data-sortKey="d">
                                <div class="skillCont">
                                    <div class="titleTextBox"><div class="awardTitleText">技术支持</div></div>
                                    
                                    <div class="awardDetailText" style="line-height:1.05rem;">页面技术由<a class="skillName" onclick='return false' />凡科互动</a>提供，技术支持方仅提供页面技术，不承担由活动引起的相关法律责任</div>
                                    <div class="infoDeviceLine ruleBoxLine"></div>
                                </div>
                            </div>
                            
                            
                            <div id="explainBox" class="rowSpacing poupLine" data-sortKey="e">
                                <div class="titleTextBox"><div class="awardTitleText">活动说明</div></div>
                                <div id="exlainInfo" class="awardDetailText">点击“开始”转盘开始转动，最终指针指着的即为您所中的奖品。</div>
                                <div class="infoDeviceLine ruleBoxLine"></div>
                            </div>
                            
                        </div>
                    </div>
                </div>
                <div class='attentionBox new_attentionBox'>
                    <div class='menuBtnBox' >
                        <a class='menuName'>关注我们</a>
                    </div>
                    
                    <div class='hdskillInfo skillInfo theRunningAdClass'><a class='theSpecialTarget' href='http://mp.weixin.qq.com/s?__biz=MjM5MTk5MjI3OA==&#x26;mid=209854000&#x26;idx=1&#x26;sn=82241d924839270d3ea820ad2d56c01b#rd'>我也要创建中秋活动</a><span class='gotoFlag'><i></i></span></div>
                    
                    <div class='holdBox'></div>
                </div>
                <div style="width:100%;height:2.25rem;" id="placeHolder"></div>                 
            </div>  
        </div>
    </div>
</div>

<div id="spxdPage"></div>
<div id='_hdOpenIdDiv' class='hide'>manager</div><!-- 存放openId的节点 -->
<div id="pageMusic" style="position:absolute;top:0;height:0;"></div>
    <div style='z-index:-1;' class="ruleImg imgContainer absCenter" _mouseIn="0" >
        <div id="ruleImg" class="slaveImg abs notNeedFatherChage outSpecialDivAutoFit hd-img-fillDiv" style='width:3rem;height:3rem;top:0.15rem;left:12.85rem;'></div>
    </div>






<div id="awardUserInfoBg" class="hide" style="position:fixed; top:0; left: 0; bottom: 0; right: 0;overflow:hidden;"></div>
<div id="hostInfoBg" class="hide" style="position:fixed; top:0; left: 0; bottom: 0; right: 0;overflow:hidden;z-index:9999;"></div>
<div id="validteBoxerBg" class="hide" style="position:fixed; top:0; left: 0; bottom: 0; right: 0;overflow: hidden;"></div>

<div id="awardDetailBox" class="poupMain bg hide isAngular">
    <div id="forJZCouponBg">
        <div class="tipsBox">
            <div class="contain">建站商城优惠券无奖品详情页<br><a href="javascript:;" onclick="window.open('http://hd.fkw.com/news/11181')">了解更多</a></div>    
        </div>
    </div>
    <div id="awardDetailScrollBox">
        <div id="awardDeailBg" class="bgfix hide"></div>
        <div class="awardCloseIcon" onclick="hg.fire('scrollEvent',true);"></div>
        <div class="awardDetail">
            <div class="hostName" style="padding: 0.7rem 2.2rem 1rem 0.7rem;text-align: left;color:#fff;word-break: break-word"></div>
            <div class="awardName"></div>
            <div class="awardSubTitle"></div>
            <div class="awardCodeTime codeTimeFixedRange"><em>使用期限</em>：<span class="codeBgTime"></span> - <span class="codeEndTime"></span></div>
            <div class="codeTimeFixedTerm hide">中奖后<span class="codeBgTime"></span>天生效，有效天数<span class="codeEndTime"></span>天</div>
            <div id="awardCollectionBtn" ontouchend = "HdGame.favorite();">收藏优惠券</div>
            <div class="awardDetailWarp"></div>
        </div>
        <div class="codeImgBox">
            <div id="codeStatusBox" class="hide" style="padding-top:1.25rem;color:#777">
                <div id="codeStatusBtn"></div>
                <div id="codeStatusInfo">商家已将该兑奖码设置为作废<br>详情请联系商家</div>
                <div id="codeStatusTips" class="hide"><em style="font-style: normal;">请先<span class="giftNameA">兑奖券</span>，<span class="targetDateMin">1</span>天后可用</em></div>
            </div>
            <div id="codeDetailInfoBox">
                <img class="codeImg"/>
                <div class='codeLine'><span id="codeName">优惠码</span>：<span style=" max-width: 8.7rem;word-wrap: break-word;display: inline-block; vertical-align: middle;"class="code selectText"></span><span class="copy">复制券码</span></div>
                <div class="codeOptInfo"></div>
                <div class="codeOptInfo_Gift"></div>
                <div class="redPacketTip hide"></div>
            </div>
        </div>
        <div class="awardBtnList">
            
            <div style="height:0.4rem;"></div>
            <!--兑奖券详情弹出层 -->
            <div id="ticketDetailBox">
                <p class="ticketitle"><span class="text">兑奖券详情</span></p>
                <div class="ticketInfo">
                    <div class="itemList dateLine codeTimeFixedRange">
                        <div class="title">有效日期</div>
                        <div class="box">
                            <span class="beginTime">2016.03.03</span>至<span class="endTime">2017.03.03</span>
                        </div>
                    </div>
                    <div class="itemList dateLine codeTimeFixedTerm hide">
                        <div class="title">有效日期</div>
                        <div class="box">
                            中奖后<span class="codeBgTime"></span>天生效，有效天数<span class="codeEndTime"></span>天
                        </div>
                    </div>
                    <div class="itemList timelimitLine">
                        <div class="title">可用时段</div>
                        <div class="box">
                            <div class="timelimit">周一至周日</div>
                        </div>
                    </div>
                    <div class="itemList addressLine">
                        <div class="title titleAdress">兑奖地址</div>
                        <div class="box">
                            <div class="address">地址</div>
                        </div>
                    </div>
                    <div class="itemList noticeLine">
                        <div class="title titleNotice">兑奖须知</div>
                        <div class="box">
                            <div class="notice"><pre style="word-wrap: break-word;"></pre></div>
                        </div>
                    </div>
                </div>
            </div>
            
            <form action=""></form>
            <div id="useStoreBox" class="initHide">
                <div class="storeTitle">
                    <span class="text">适用门店</span><span class="storeNumText">（<span id="storeNum">5</span>个）</span>
                    <span class="moreBtn">更多</span>
                </div>
                <div class="storeInfoBox">
                    <div class="locationBtn" onclick="HdGame.openStoreLocation(this)"></div>
                    <div class="info">
                        <div class="storeNameBox"><span id="storeName"></span><span id="distance"></span></div>
                        <div class="storeAdress"></div>
                    </div>
                </div>
            </div>
            <div style="height:0.4rem;"></div>
            <a style="text-decoration:none;"><div class="servicePhone awardDetailBtn"><span class="text">客服电话</span><span class="phoneIcon"></span><span class="phoneText"></span></div></a>
            <!--20180809版本划分新旧活动-->
            
                <a id="hostInfoDetail" style="text-decoration:none;"><div class="jumptoHostInfo awardDetailBtn"><span class="text">主办方介绍</span><div class="cell__ft"></div></div></a>
            
            <a id="awardCusBtnInfo" href="javascript:;" style="text-decoration:none;"><div class="awardCusBtn awardDetailBtn weui-cell__bd" style="border-top:none;"><span class="text">自定义按钮（未开启）</span><span class="textDef hide">自定义按钮（未开启）</span><div class="cell__ft"></div></div></a>
            <div style="height:3.15rem;"></div>
        </div>
    </div>
    <div class="hide homePoupMask codeCopyDetailMask">
        <div class="codeCopyDetailPoup">
            长按以下文字复制券码<br>
            <div class="copyCode selectText"></div>
        </div>
    </div>
    <div class="hide bgfix codeDetailImgBox">
        <div class="absCenter imgBox">
            <img class="codeImg" style="width:9rem;height:9rem;"/>
        </div>
    </div>
    <div id="bottomCusBtnBox">
        <a id="bottomCusBtnInfo" href="javascript:;" style="text-decoration:none;"><div class="bottomCusBtn cusBtn" style="border-top:none;"><span class="text">立即兑奖</span></div></a>
        <!--<a id="WxCusBtnInfo" href="javascript:;" style="text-decoration:none;" class="hide"><div class="awardCusBtn cusBtn" style="border-top:none;"><span class="text">自定义按钮（未开启）</span><span class="textDef hide">自定义按钮（未开启）</span><div class="cell__ft"></div></div></a>-->
        <!--<a id="WxCusBtnInfo" href="javascript:;" style="text-decoration:none;"><div class="cusBtn" style="border-top:none;"><span class="text">领取微信卡券</span><div class="cell__ft"></div></div></a>-->
    </div>
</div>
<div id="storeListBox" class="bg hide">
    <div class="list"></div>
    <div class="refreshBtn hide">更新当前位置</div>
    <div class="closeBtn"></div>
</div>

<div id="informBox" class="bg hide">
    <div id="inform-reason-page">
        <div class="weui-cells__title">请选择投诉原因</div>
        <div class="weui-cells weui-cells_radio"  id="inform-reason-box">
            <label class="weui-cell weui-check__label reasonItem" for="temptShare" _index="0">
                <div class="weui-cell__bd">
                    <p>诱导分享</p>
                </div>
                <div class="weui-cell__ft">
                    <input type="radio" class="weui-check" name="radio1" id="temptShare">
                    <span class="weui-icon-checked"></span>
                </div>
            </label>
            <label class="weui-cell weui-check__label reasonItem" for="shamActive" _index="1">
                <div class="weui-cell__bd">
                    <p>虚假活动</p>
                </div>
                <div class="weui-cell__ft">
                    <input type="radio" name="radio1" class="weui-check" id="shamActive">
                    <span class="weui-icon-checked"></span>
                </div>
            </label>
            <label class="weui-cell weui-check__label reasonItem" for="political" _index="2">
                <div class="weui-cell__bd">
                    <p>政治敏感</p>
                </div>
                <div class="weui-cell__ft">
                    <input type="radio" class="weui-check" name="radio1" id="political">
                    <span class="weui-icon-checked"></span>
                </div>
            </label>
            <label class="weui-cell weui-check__label reasonItem" for="eroticism" _index="3">
                <div class="weui-cell__bd">
                    <p>色情低俗</p>
                </div>
                <div class="weui-cell__ft">
                    <input type="radio" name="radio1" class="weui-check" id="eroticism">
                    <span class="weui-icon-checked"></span>
                </div>
            </label>
            <label class="weui-cell weui-check__label reasonItem" for="rumor" _index="4">
                <div class="weui-cell__bd">
                    <p>谣言</p>
                </div>
                <div class="weui-cell__ft">
                    <input type="radio" class="weui-check" name="radio1" id="rumor">
                    <span class="weui-icon-checked"></span>
                </div>
            </label>
            <label class="weui-cell weui-check__label reasonItem" for="otherReason" _index="5">
                <div class="weui-cell__bd">
                    <p>其他（收集隐私信息等）</p>
                </div>
                <div class="weui-cell__ft">
                    <input type="radio" name="radio1" class="weui-check" id="otherReason">
                    <span class="weui-icon-checked"></span>
                </div>
            </label>
        </div>
        <div id="cancel-inform-btn" ontouchend="hg.fire('scrollEvent',true);">取消</div>
        <div id="next-inform-btn" class="weui-btn weui-btn_primary hide">下一步</div>
        <div id="inform-poup-tip" class="hide">投诉成功</div>
    </div>
    <div id="inform-desc-page" style="display: none;">
        <div class="weui-cells__title">投诉描述</div>
        <div class="weui-cells weui-cells_form">
            <div class="weui-cell" id="inform-desc-box">
                <div class="weui-cell__bd">
                    <textarea class="weui-textarea" id="informDesc" placeholder="请输入文本" rows="4"></textarea>
                    <div class="weui-textarea-counter" id="informDesc-counter"><span>0</span>/50</div>
                </div>
            </div>
        </div>
        <div id="submit-inform-btn" class="weui-btn weui-btn_primary">提交</div>
    </div>
</div>
<div id="informResultBox" class="bg hide weui">
    <div class="weui-msg">
        <div class="weui-msg__icon-area"><i class="weui-icon-success weui-icon_msg"></i></div>
        <div class="weui-msg__text-area">
            <h2 class="weui-msg__title">投诉成功</h2>
            <p class="weui-msg__desc">感谢你的参与，我们坚决反对色情、暴力、欺诈等违规信息，我们会认真处理你的投诉，维护绿色、健康的网络环境</p>
        </div>
        <div class="weui-msg__opr-area" ontouchend="hg.fire('scrollEvent',true);">
            <p class="weui-btn-area">
                <a class="confirm-btn weui-btn weui-btn_primary">确定</a>
            </p>
        </div>
        <div class="weui-msg__extra-area">
            <div class="weui-footer">
            </div>
        </div>
    </div>
</div>

    <div class="homeBtnBox specialBottom" style='position: fixed;'>
        
        
        <!--<div id="informBtn" ontouchend="HdGame.changePoup(5,'',true);hg.fire('scrollEvent',false);">-->
        
        <!--    <span>投诉</span>-->
        </div>
    </div>


<div id="lots-wait-Box" style="display:none">
    <div id="lots-wait-img" class="editRelate-lotsPot"></div>
    <div id="lots-wait-hint">当前抽奖人数过多<br/>请稍等 <span id="lots-wait-hint-num">0</span> 秒</div>
</div>
<div id="helpGuideBox" style="display:none">
    
        
            <p>你今天已经没有抽奖机会了</br>分享给好友或群聊</p>
            <p style="margin-top:1.1rem;">
                今天将额外获得1次抽奖机会！<br/>（仅限当天首次分享）
            </p>
        
    
</div>


<div class="resuleBox hide">
    <div id="resule-status-box" style="display:none">
        
        <div id="resule-status-lotsBox" style="display:none">
            <img id="resule-status-lots" class="editTarget-lotsPot">
            <div id="resule-status-lotsHand" class="editTarget-lotsShakeHand">
                <div class="shakeHand"></div>
                <div class="shakeTxt"></div>
                <div class="waitDrawBtn" style="display:none">点击抽奖</div>
            </div>
        </div>
    </div>
    <div id="resule-gift-box" style="display:none">
        <div id="resule-gift-scrollWrap" class="resule-gift-overflowScrolling" style="padding-top:1.2rem;position:relative;z-index:300;">
            
            <div>
                <img id="successBgImgBox" class="editTarget-successBgImgBox">
            </div>
            
            <div class="resule-bgLight" style='display:none;'></div>
            
            
            <div id="luckContainer" class='luckCont_manage' style="position:absolute; width: 100%;z-index:250;">
                <p id="resule-gift-luck" class="titleTextluckContainer" style="text-align:center;" ></p>
            
                <div class="imgContentLimit hide" style="width: 14rem; height: 30rem; position: absolute;"></div>
                <div class="imgContainer xydzp_GiftPos" style="position:relative;">
                    <img id="resule-gift-sucImg" class="slaveImg">
                    
                    <div class="resule-gift-Jscontroler resule-gift-Csscontroler hide">                                    
                        <img id="next-resule-gift-sucImg" />
                    </div> 
                    
                </div>
                
                    <div id="resule-gift-foot" class="editTarget-giftFoot giftFoot">
                        <p id="resule-gift-rank"> <span class="gifArg awardStyle giftRank"></span> </p>
                        <p id="resule-gift-goods"> <span class="gifArg awardName giftGoods"></span> </p>    
                    </div>
                    
                    <div id="next-resule-gift-foot" class="editTarget-giftFoot giftFoot hide">
                        <div class="next-fonts-foot">
                            <p id="next-resule-gift-rank"> <span class="gifArg awardStyle giftRank"></span></p>
                            <p id="next-resule-gift-goods"> <span class="gifArg awardName giftGoods"></span></p>
                        </div>
                    </div>
                    
                    <div class="seeAwardDetailImg">
                        <div class="editTarget-seeAwardDetailImg seeDetail"></div>
                    </div>  
                
                
                
                <div id="resule-gift-buttonMenu">
                    
                    
                    
                </div>
                
            </div>
        </div>
    
    <div id="faiImgBox">
        <div class="cannotGetThePriceBox"></div>
        
            <div>
                <img class="editTarget-xydzpGetPricePic imgPreventDefault" id="theGetPricePic" />
            </div>
        
        
            
                
                    <div class='resule-gift-home xydzp_MenuAgain xydzpCloseImg hide'><img id="xydzpCloseImg" class="editTarget-xydzpCloseImg" /></div>
                    <div class='resule-gift-home xydzp_MenuAgain xydzpAgainImg'><img id="xydzpAgainImg" class="editTarget-xydzpAgainImg" /></div>

                
            
        
        
    </div>
    
    <div id="resule-gift-buttonMenu-bottom">
        
        
        
        
    </div>
    
        <div class='attentionBox'>
        
            
            <div class='menuBtnBox btnB' >
            
              <a class='menuName'>关注我们</a>
            </div>
            <div class='hdskillInfo skillInfo theRunningAdClass'><a class="theSpecialTarget" href='http://mp.weixin.qq.com/s?__biz=MjM5MTk5MjI3OA==&#x26;mid=209854000&#x26;idx=1&#x26;sn=82241d924839270d3ea820ad2d56c01b#rd'>我也要创建中秋活动</a><span class='gotoFlag'><i></i></span></div> 
            <div class="holdBox"></div>
        </div>
    </div>
</div>


<div id="awardCodeLayer" class="homePoupMask hide">
    <div id="awardCodeDetail" style="border-radius: 0.2rem;">
        <div class='codeLine' style="margin-top:0.4rem;">请联系核销员扫码核销</div>
        <img class="codeImg"/>
        <div class='codeLine' style="padding-top: 0.8rem;"><span class="code selectText"></span></div>
        <div class="codeOptInfo"></div>
    </div>
</div>
<div id="newAttentionMask" class="homePoupMask hide">
    <div id="newAttentionPoup" class="homePoupInner attentionPoup">
        <canvas id="QRImg_canvas2" class="QRImg_canvas"></canvas>
        <img class="QRImg_exportImg" class="hide" src style="position: absolute; top: 0.5rem; z-index: 10; height: 16.5rem"/>
    </div>
</div>
<div id="plAttentionMask" class="homePoupMask hide">
    <div id="plAttentionPoup" class="homePoupInner attentionPoup">
        <canvas id="QRImg_canvas3" class="QRImg_canvas"></canvas>
        <img class="QRImg_exportImg" class="hide" src style="position: absolute; top: 0.5rem; z-index: 10; height: 16.5rem"/>
    </div>
</div>

    <div id="skillSupMask" class="homePoupMask">
        <img src="img/caewmA_0.png?v=201711211453" style="position:absolute;top:2rem;z-index:10;margin:auto;left:0;right:0;width:11.65rem"/>
    </div>


<div id='limitRange' style="height:25.728rem"></div>
<div id='limitRange2' style="height:25.728rem"></div>


<script type="text/javascript">
    function loadGamePreAssets(){
        hg.assets.add([
            '//hdg.faisys.com/image/xydzp/startBtn.png',
            '//hdg.faisys.com/image/xydzp/rotatePan.png',
        ]);
    }
</script>

<script type="text/javascript">
    var _manage = true,
        tryPlay = false,
        isJoinThemeGame = false,
        m_debug = false, 
        _resRoot = '//hdg.faisys.com',
        _ruleInfo = {},
        m_isPre = false,
        isOpenAdvertise = false,
        isHideTitle = false,
        hg = {};
    var _preview = false;
    (function(hg){var CB=(function(){function CB(){if(!(this instanceof CB)){return new CB()}this.callBacks=[]}CB.prototype.add=function(callBack){if(!this.callBacks){callBack&&callBack();return}this.callBacks.push(callBack)};CB.prototype.fire=function(){this.callBacks.forEach(function(callBack){callBack&&callBack()});this.callBacks=null};return CB})();var cache=[],readyCallBack=CB(),loadCallBack=CB();function isContain(arr,src){for(var i=0,len=arr.length;i<len;i++){if(arr[i]===src)return i}return-1}function throttle(fn,num){var hasFire=0;return function(){if(++hasFire===num){fn&&fn()}}}hg.assets={startTime:0,isOldLogic:false,complete:false,loadComplete:false,increment:0,loadingStyle:1,getGroup:function(name){return cache.filter(function(group){return group.name===name})[0]},addImgGroup:function(conf){var defConf={name:"other",path:[],eachComplete:null,complete:null};conf=conf||{};for(var key in defConf){if(!conf.hasOwnProperty(key)){conf[key]=defConf[key]}}if(this.getGroup(conf.name)){console.warn("the group has existed");return}if(cache.length<2){cache.push(conf)}else{if(typeof conf.level==="undefined"){cache.splice(cache.length-1,0,conf)}else{if(conf.level>=cache.length){cache.splice(cache.length-1,0,conf)}else{cache.splice(conf.level,0,conf)}}}},add:function(name,src){var self=this;if(self.complete||_manage){return}if(arguments.length===1){src=arguments[0];name="other"}if(arguments.length===2&&typeof arguments[0]==="undefined"){name="other"}if(self.isOldLogic){name="home"}var conf=self.getGroup(name);if(typeof conf==="undefined"){return}if(isArray(src)){for(var i=src.length-1;i>=0;i--){self.add(name,src[i])}}else if(typeof src==='string'&&src.length!==0){self[src+"_cb"]=CB();cache.forEach(function(group){var index=isContain(group.path,src);if(index!==-1){group.path.splice(index,1)}});conf.path.push(src)}return this},onReady:function(){var self=this;if(arguments.length===1){readyCallBack.add(arguments[0])}else if(arguments.length===2){if(isArray(arguments[0])){var callBack=throttle(arguments[1],arguments[0].length);arguments[0].forEach(function(src){self[src+"_cb"].add(callBack)})}else if(typeof arguments[0]==="string"){if(arguments[0].indexOf(".")===-1){this.onReady(self.getGroup(arguments[0]).path,arguments[1])}else{this[arguments[0]+"_cb"].add(arguments[1])}}}return this},onload:function(callBack){loadCallBack.add(callBack);return this},loadPage:function(){if(_manage)return;var self=this,percent=1,numLoaded=0,groupLoaded=0,$loadPercent=document.getElementById("loadPercent"),loadPallet;window.scrollTo(0,0);loading();self.startTime=Date.now();if(self.loadingStyle===1){loadStart()}else if(self.loadingStyle===3){var logoImg=document.getElementById("preloadImg");var initLogoImg=function(img){var img=logoImg;var h=img.height;var w=img.width;var bottomPageInfoDeg=-Math.atan(w/h)-Math.PI/2;var canvas=document.getElementById("preloadCanvas");var ctx=canvas.getContext("2d");var ratio=(window.devicePixelRatio||1)/(ctx.backingStorePixelRatio||ctx.webkitBackingStorePixelRatio||ctx.mozBackingStorePixelRatio||ctx.msBackingStorePixelRatio||ctx.oBackingStorePixelRatio||ctx.backingStorePixelRatio||1);var drawImg=function(){ctx.fillStyle="#fff";ctx.fillRect(0.2*g_rem*ratio,0.2*g_rem*ratio,w*ratio,h*ratio);ctx.drawImage(img,0.2*g_rem*ratio,0.2*g_rem*ratio,w*ratio,h*ratio)};if(h===w){if(h>3.5*g_rem){h=w=3.5*g_rem}drawImg=function(){ctx.save();ctx.beginPath();ctx.arc(canvas.width/2,canvas.height/2,w/2*ratio,0,2*Math.PI);ctx.clip();ctx.fillStyle="#fff";ctx.fill();ctx.drawImage(img,0.2*g_rem*ratio,0.2*g_rem*ratio,w*ratio,h*ratio);ctx.restore()}}else{if(w>h&&w>8*g_rem){h=8*g_rem*h/w;w=8*g_rem}else{if(h>w&&h>8*g_rem){w=8*g_rem*w/h;h=8*g_rem}}}canvas.width=(w+0.4*g_rem)*ratio;canvas.height=(h+0.4*g_rem)*ratio;canvas.style.width=w+0.4*g_rem+"px";canvas.style.height=h+0.4*g_rem+"px";if(h===w){ctx.beginPath();ctx.arc(canvas.width/2,canvas.height/2,canvas.width/2,0,2*Math.PI);ctx.clip()}ctx.strokeStyle="#69c5ff";ctx.lineWidth=8*g_rem*ratio;loadPallet=function(tmp){ctx.beginPath();ctx.arc(canvas.width/2,canvas.height/2,4*g_rem*ratio,bottomPageInfoDeg,bottomPageInfoDeg+tmp*(2*Math.PI/100));ctx.stroke();drawImg()};loadStart()};if(logoImg.complete){initLogoImg()}else{logoImg.onload=initLogoImg}}function loadStart(){var group=cache[groupLoaded];loadimg(group.path,function(){group.eachComplete&&group.eachComplete();if(groupLoaded===0){numLoaded++}},function(){group.complete&&group.complete();if(++groupLoaded<cache.length){loadStart()}else{clearTimeout(self._loadTimer);self.complete=true;readyCallBack.fire()}})}function loadimg(arr,callBack1,callBack2){var hasLoaded=0;for(var i=arr.length-1;i>=0;i--){var img=new Image();img.onload=loadCheckComplete;img.onerror=loadCheckComplete;img.src=img.key=arr[i];self[arr[i]]=img}function loadCheckComplete(){hasLoaded++;this.assets_complete=true;self[this.key+"_cb"].fire();callBack1&&callBack1();if(hasLoaded===arr.length){callBack2&&callBack2()}}}function loading(){var homeImgPath=self.getGroup("home").path;if(numLoaded<homeImgPath.length){if(percent<100-homeImgPath.length+numLoaded){percent++;setPercent(percent-1)}}else{percent+=10;percent>100&&(percent=100);setPercent(percent-1)}if(percent>=100&&typeof $!='undefined'&&typeof HdGame!='undefined'){if(!g_config.test&&g_config.isForbidShareactivity&&!_manage){wx.ready(loadEnd)}else{loadEnd()}return}setTimeout(arguments.callee,10)}function setPercent(percent){$loadPercent.innerHTML=percent;if(percent===100){var index=0;setTimeout(function(){index++;if(index<10){loadPallet&&loadPallet(120);setTimeout(arguments.callee,17)}else{loadPallet=null}},17)}loadPallet&&loadPallet(percent)}function loadEnd(){setPercent(100);var bgHeight=HdGame.getBgHeight();!HdGame.nootNeedFixHeight&&$("#homeBgBox,.gameBgBox").css("height",bgHeight/g_rem+"rem");setTimeout(function(){if(bgHeight>$(window).height()){$((g_config.style==55?".gameBox":".home")+" .bottomSkill,#bottomSkill").css("top",(bgHeight-$(".bottomSkill").outerHeight())/g_rem+"rem")}setTimeout(function(){$loadPercent=null;$("#preloadPage").hide()},500);self.loadComplete=true;loadCallBack.fire();logoImg=null;$loadPercent=null;$("#preloadPage").addClass("leftClose")},300)}}};hg.assets.addImgGroup({name:"home"});hg.assets.addImgGroup({name:"other"})})(hg);
    /*----------------------------可编辑元素包装------------------------------------*/
    hg.edit = null;
    
    hg.edit = {};

    (function(hg){
        var origin = [{"name":"homeBoxBg","path":["https://hdg.faisys.com/image/xydzp/homeBg.jpg"],"showPath":[1],"css":[{"css":[{"opt":0,"val":"#fe675f","defVal":"#fe675f","tra":1,"defTra":1}],"opt":0}]},{"name":"titleBox","pos":{"left":"0.55rem","top":"1rem"},"size":{"width":"14.7rem","height":"5.8rem"},"path":["//hdg.faisys.com/image/xydzp/title.png"]},{"name":"xydzpGetPricePic","pos":{"left":"2rem","top":"3rem"},"size":{"width":"12.2rem","height":"15.2rem"},"path":[["//hdg.faisys.com/image/xydzp/xydzpFailImg.png"]]},{"name":"rotatePan","path":["//hdg.faisys.com/image/xydzp/rotatePan.png"]},{"name":"deviceLine","path":["//hdg.faisys.com/image/xydzp/device.png"]},{"name":"zp1","path":["//hdg.faisys.com/image/xydzp/zp1.png"]},{"name":"zp2","path":["//hdg.faisys.com/image/xydzp/zp2.png"]},{"name":"zp3","path":["//hdg.faisys.com/image/xydzp/zp3.png"]},{"name":"zp4","path":["//hdg.faisys.com/image/xydzp/zp4.png"]},{"name":"zp5","path":["//hdg.faisys.com/image/xydzp/zp5.png"]},{"name":"zp6","path":["//hdg.faisys.com/image/xydzp/zp6.png"]},{"name":"zp7","path":["//hdg.faisys.com/image/xydzp/zp7.png"]},{"name":"zp8","path":["//hdg.faisys.com/image/xydzp/zp8.png"]},{"name":"zp900","path":["//hdg.faisys.com/image/xydzp/zp900.png"]},{"name":"zp0","path":["//hdg.faisys.com/image/xydzp/zp0.png"]},{"name":"wrap"},{"name":"myAwardImg","path":["https://hdg.faisys.com/image/xydzp/myAwardImg.png"]},{"name":"contactInfoImg","path":["https://hdg.faisys.com/image/xydzp/contactInfoImg.png"]},{"name":"activeRuleImg","path":["https://hdg.faisys.com/image/xydzp/activeRuleImg.png"]},{"name":"xydzptwoImg","pos":{"left":"0rem","top":"0rem"},"size":{"width":"4rem","height":"4rem"},"path":[["//hdg.faisys.com/image/xydzp/againImg.png"]]},{"name":"xydzpAgainImg","pos":{"left":"4.5rem","top":"14.5rem"},"size":{"width":"6.8rem","height":"2rem"},"path":[["//hdg.faisys.com/image/xydzp/againImg.png"]]},{"name":"xydzpCloseImg","pos":{"left":"4.5rem","top":"14.5rem"},"size":{"width":"6.8rem","height":"2rem"},"path":[["//hdg.faisys.com/image/xydzp/closeImg.png"]]},{"name":"seeAwardDetailImg","size":{"width":"7.3rem","height":"2.5rem"},"path":[["//hdg.faisys.com/image/xydzp/seeAwardDetailImg.png"]]},{"name":"successBgImgBox","pos":{"left":"1.5rem","top":"0rem"},"size":{"width":"13rem","height":"17.8rem"},"path":[["//hdg.faisys.com/image/xydzp/successBgImg.png"]]},{"name":"ruleBox","css":[{"css":[{"opt":0,"val":15,"defVal":15},{"opt":0,"val":"#fff","defVal":"#fff","tra":-1,"defTra":-1},{"opt":0,"val":"","defVal":""}],"opt":0},{"css":[{"opt":0,"val":14,"defVal":14},{"opt":0,"val":"#fff","defVal":"#fff","tra":-1,"defTra":-1},{"opt":0,"val":"","defVal":""}],"opt":0},{"css":[{"opt":0,"val":"#fe675f","defVal":"#fe675f","tra":-1,"defTra":-1}],"opt":0},{"css":[{"opt":0,"val":"#fff","defVal":"#fff"}],"opt":0}]},{"name":"drawInfo","pos":{"left":"2.5rem","top":"1.25rem"},"css":[{"css":[{"opt":0,"val":12,"defVal":12},{"opt":0,"val":"#fa5208","defVal":"#fa5208","tra":-1,"defTra":-1},{"opt":0,"val":"","defVal":""}],"opt":0},{"css":[{"opt":0,"val":12,"defVal":12},{"opt":0,"val":"#fa5208","defVal":"#fa5208","tra":-1,"defTra":-1},{"opt":0,"val":"","defVal":""}],"opt":0}]},{"name":"myAwardBox","css":[{"css":[{"opt":0,"val":15,"defVal":15},{"opt":0,"val":"#fff","defVal":"#fff","tra":-1,"defTra":-1},{"opt":0,"val":"","defVal":""}],"opt":0},{"css":[{"opt":0,"val":15,"defVal":15},{"opt":0,"val":"#fffc00","defVal":"#fffc00","tra":-1,"defTra":-1},{"opt":0,"val":"","defVal":""}],"opt":0},{"css":[{"opt":0,"val":"#fe675f","defVal":"#fe675f","tra":-1,"defTra":-1}],"opt":0},{"css":[{"opt":0,"val":"#fff","defVal":"#fff"}],"opt":0}]},{"name":"awardContactInfo","css":[{"css":[{"opt":0,"val":15,"defVal":15},{"opt":0,"val":"#fff","defVal":"#fff","tra":-1,"defTra":-1},{"opt":0,"val":"","defVal":""}],"opt":0},{"css":[{"opt":0,"val":15,"defVal":15},{"opt":0,"val":"#fffc00","defVal":"#fffc00","tra":-1,"defTra":-1},{"opt":0,"val":"","defVal":""}],"opt":0},{"css":[{"opt":0,"val":"#fe675f","defVal":"#fe675f","tra":-1,"defTra":-1}],"opt":0},{"css":[{"opt":0,"val":"#fff","defVal":"#fff"}],"opt":0}]},{"name":"WinnersBox","css":[{"css":[{"opt":0,"val":15,"defVal":15},{"opt":0,"val":"#fff","defVal":"#fff","tra":-1,"defTra":-1},{"opt":0,"val":"","defVal":""}],"opt":0},{"css":[{"opt":0,"val":15,"defVal":15},{"opt":0,"val":"#fffc00","defVal":"#fffc00","tra":-1,"defTra":-1},{"opt":0,"val":"","defVal":""}],"opt":0},{"css":[{"opt":0,"val":"#fe675f","defVal":"#fe675f","tra":-1,"defTra":-1}],"opt":0},{"css":[{"opt":0,"val":"#fff","defVal":"#fff"}],"opt":0}]},{"name":"giftFoot","css":[{"css":[{"opt":0,"val":18,"defVal":18},{"opt":0,"val":"#ff6b3a","defVal":"#ff6b3a","tra":-1,"defTra":-1},{"opt":0,"val":"","defVal":""}],"opt":0},{"css":[{"opt":0,"val":18,"defVal":18},{"opt":0,"val":"#ff6b3a","defVal":"#ff6b3a","tra":-1,"defTra":-1},{"opt":0,"val":"","defVal":""}],"opt":0}]},{"name":"theGetPricePic","pos":{"left":"0rem","top":"0rem"},"size":{"width":"4rem","height":"4rem"},"path":[["//hdg.faisys.com/image/faiImg1-2.png"]]},{"name":"theGetPricePicTwo","pos":{"left":"0rem","top":"0rem"},"size":{"width":"4rem","height":"4rem"},"path":[["//hdg.faisys.com/image/faiImg2-2.png"]]},{"name":"theGetPricePicThree","pos":{"left":"0rem","top":"0rem"},"size":{"width":"4rem","height":"4rem"},"path":[["//hdg.faisys.com/image/faiImg3-2.png"]]},{"name":"lotsPot","pos":{"left":"4.9rem","top":"3rem"},"size":{"width":"6.15rem","height":"12.4rem"},"path":[["//hdg.faisys.com/image/lots1.png"]]},{"name":"lotsShakeHand","pos":{"left":"4.5rem","top":"17.9rem"}},{"name":"advertising","path":["https://hdg.faisys.com/image/gg.jpg"]}];
        var originDef = [{"name":"homeBoxBg","edit":"_backgroundAll","path":["*_resRoot*/image/xydzp/homeBg.jpg"],"showPath":[1],"targetName":"编辑背景","cssEdit":1,"css":[{"title":"背景颜色","targetName":"背景颜色","opt":0,"css":[{"type":"color","name":"background-color","val":"#fe675f","defVal":"#fe675f","tra":1,"defTra":1,"opt":0}]}]},{"name":"titleBox","pos":{"left":"0.55rem","top":"1rem"},"size":{"width":"14.7rem","height":"5.8rem"},"path":["*_resRoot*/image/xydzp/title.png","标题图片","5000k"],"edit":"titleBox"},{"name":"xydzpGetPricePic","pos":{"left":"2rem","top":"3rem"},"size":{"width":"12.2rem","height":"15.2rem"},"path":[["*_resRoot*/image/xydzp/xydzpFailImg.png","图片01","5000k"]],"edit":"xydzpGetPricePic"},{"name":"rotatePan","rsize":{"width":"14.8rem","height":"14.8rem"},"path":["*_resRoot*/image/xydzp/rotatePan.png","大转盘","5000k"],"group":"home"},{"name":"deviceLine","rsize":{"width":"0.05rem","height":"16rem"},"path":["*_resRoot*/image/xydzp/device.png","切割线","5000k"],"group":"home"},{"name":"zp1","rsize":{"width":"6.9rem","height":"6.9rem"},"path":["*_resRoot*/image/xydzp/zp1.png","奖项一","5000k"],"group":"home"},{"name":"zp2","rsize":{"width":"6.9rem","height":"6.9rem"},"path":["*_resRoot*/image/xydzp/zp2.png","奖项二","5000k"],"group":"home"},{"name":"zp3","rsize":{"width":"6.9rem","height":"6.9rem"},"path":["*_resRoot*/image/xydzp/zp3.png","奖项三","5000k"],"group":"home"},{"name":"zp4","rsize":{"width":"6.9rem","height":"6.9rem"},"path":["*_resRoot*/image/xydzp/zp4.png","奖项四","5000k"],"group":"home"},{"name":"zp5","rsize":{"width":"6.9rem","height":"6.9rem"},"path":["*_resRoot*/image/xydzp/zp5.png","奖项五","5000k"],"group":"home"},{"name":"zp6","rsize":{"width":"6.9rem","height":"6.9rem"},"path":["*_resRoot*/image/xydzp/zp6.png","奖项六","5000k"],"group":"home"},{"name":"zp7","rsize":{"width":"6.9rem","height":"6.9rem"},"path":["*_resRoot*/image/xydzp/zp7.png","奖项七","5000k"],"group":"home"},{"name":"zp8","rsize":{"width":"6.9rem","height":"6.9rem"},"path":["*_resRoot*/image/xydzp/zp8.png","奖项八","5000k"],"group":"home"},{"name":"zp900","rsize":{"width":"6.9rem","height":"6.9rem"},"path":["*_resRoot*/image/xydzp/zp900.png","安慰奖","5000k"],"group":"home"},{"name":"zp0","rsize":{"width":"6.9rem","height":"6.9rem"},"path":["*_resRoot*/image/xydzp/zp0.png","谢谢参与","5000k"],"group":"home"},{"name":"wrap","edit":"all"},{"name":"myAwardImg","rsize":{"width":"12.5rem","height":"1.55rem"},"edit":"myAwardImg,contactInfoImg,activeRuleImg","path":["*_resRoot*/image/xydzp/myAwardImg.png","我的奖品","5000k"]},{"name":"contactInfoImg","rsize":{"width":"12.5rem","height":"1.55rem"},"edit":"myAwardImg,contactInfoImg,activeRuleImg","path":["*_resRoot*/image/xydzp/contactInfoImg.png","联系信息","5000k"]},{"name":"activeRuleImg","rsize":{"width":"12.5rem","height":"1.55rem"},"edit":"myAwardImg,contactInfoImg,activeRuleImg","path":["*_resRoot*/image/xydzp/activeRuleImg.png","活动说明","5000k"]},{"name":"xydzptwoImg","pos":{"left":"4.5rem","top":"14.5rem"},"size":{"width":"6.8rem","height":"2rem"},"path":[["*_resRoot*/image/xydzp/againImg.png","再来一次","5000k"]],"edit":"xydzpAgainImg,xydzpCloseImg"},{"name":"xydzpAgainImg","pos":{"left":"4.5rem","top":"14.5rem"},"size":{"width":"6.8rem","height":"2rem"},"path":[["*_resRoot*/image/xydzp/againImg.png","再来一次","5000k"]],"edit":"xydzpAgainImg,xydzpCloseImg"},{"name":"xydzpCloseImg","pos":{"left":"4.5rem","top":"14.5rem"},"size":{"width":"6.8rem","height":"2rem"},"path":[["*_resRoot*/image/xydzp/closeImg.png","关闭","5000k"]],"edit":"xydzpAgainImg,xydzpCloseImg"},{"name":"seeAwardDetailImg","size":{"width":"7.3rem","height":"2.5rem"},"path":[["*_resRoot*/image/xydzp/seeAwardDetailImg.png","查看奖品详情","5000k"]],"edit":"seeAwardDetailImg"},{"name":"successBgImgBox","pos":{"left":"1.5rem","top":"0rem"},"size":{"width":"13rem","height":"17.8rem"},"path":[["*_resRoot*/image/xydzp/successBgImg.png","中奖背景图","5000k"]],"edit":"successBgImgBox"},{"name":"ruleBox","css":[{"title":"副标题","opt":0,"from":"#activeRuleInfoBox .awardTitleText","css":[{"type":"size","name":"font-size","val":15,"defVal":15,"opt":0},{"type":"color","name":"color","defVal":"#fff","val":"#fff","tra":-1,"defTra":-1,"opt":0},{"type":"color","name":"text-shadow","val":"","defVal":"","opt":0}]},{"title":"常规文字","opt":0,"from":"#activeRuleInfoBox .awardDetailText","css":[{"type":"size","name":"font-size","val":14,"defVal":14,"opt":0},{"type":"color","name":"color","defVal":"#fff","val":"#fff","tra":-1,"defTra":-1,"opt":0},{"type":"color","name":"text-shadow","val":"","defVal":"","opt":0}]},{"title":"填充颜色","opt":0,"from":"#actExplain","css":[{"type":"color","name":"background-color","val":"#fe675f","defVal":"#fe675f","tra":-1,"defTra":-1,"opt":0}]},{"title":"边框颜色","opt":0,"from":"#actExplain","css":[{"type":"color","name":"border-color","val":"#fff","defVal":"#fff","opt":0}]}]},{"name":"drawInfo","pos":{"left":"2.5rem","top":"1.25rem","forParent":"false"},"css":[{"title":"常规文字","opt":0,"from":"#drawInfo .dayDraw4Total,#drawInfo .totalDraw,#drawInfo .dayDraw","css":[{"type":"size","name":"font-size","val":12,"defVal":12,"opt":0},{"type":"color","name":"color","defVal":"#fa5208","val":"#fa5208","tra":-1,"defTra":-1,"opt":0},{"type":"color","name":"text-shadow","val":"","defVal":"","opt":0}]},{"title":"抽奖次数","opt":0,"from":"#drawInfo .specil","css":[{"type":"size","name":"font-size","val":12,"defVal":12,"opt":0},{"type":"color","name":"color","val":"#fa5208","defVal":"#fa5208","tra":-1,"defTra":-1,"opt":0},{"type":"color","name":"text-shadow","val":"","defVal":"","opt":0}]}],"edit":3},{"name":"myAwardBox","css":[{"title":"奖品文字","opt":0,"from":"#myAwardBox #myAwardInfo .awardText,#myAwardBox #myAwardInfo .colon","edit":"myAwardBox","css":[{"type":"size","name":"font-size","val":15,"defVal":15,"opt":0},{"type":"color","name":"color","defVal":"#fff","val":"#fff","tra":-1,"defTra":-1,"opt":0},{"type":"color","name":"text-shadow","val":"","defVal":"","opt":0}]},{"title":"查看详情","opt":0,"from":"#myAwardBox #myAwardInfo .awardInfoDetail","edit":"myAwardBox","css":[{"type":"size","name":"font-size","val":15,"defVal":15,"opt":0},{"type":"color","name":"color","val":"#fffc00","defVal":"#fffc00","tra":-1,"defTra":-1,"opt":0},{"type":"color","name":"text-shadow","val":"","defVal":"","opt":0}]},{"title":"填充颜色","opt":0,"from":"#myAwardBox","edit":"myAwardBox","css":[{"type":"color","name":"background-color","val":"#fe675f","defVal":"#fe675f","tra":-1,"defTra":-1,"opt":0}]},{"title":"描边颜色","opt":0,"from":"#myAwardBox","edit":"myAwardBox","css":[{"type":"color","name":"border-color","val":"#fff","defVal":"#fff","opt":0}]}]},{"name":"awardContactInfo","css":[{"title":"常规文字","opt":0,"from":"#awardContactInfo .contactGroup","edit":"awardContactInfo","css":[{"type":"size","name":"font-size","val":15,"defVal":15,"opt":0},{"type":"color","name":"color","defVal":"#fff","val":"#fff","tra":-1,"defTra":-1,"opt":0},{"type":"color","name":"text-shadow","val":"","defVal":"","opt":0}]},{"title":"修改按钮","opt":0,"from":"#awardContactInfo .modifyBtn","edit":"awardContactInfo","css":[{"type":"size","name":"font-size","val":15,"defVal":15,"opt":0},{"type":"color","name":"color","val":"#fffc00","defVal":"#fffc00","tra":-1,"defTra":-1,"opt":0},{"type":"color","name":"text-shadow","val":"","defVal":"","opt":0}]},{"title":"填充颜色","opt":0,"from":"#awardContactInfo","edit":"awardContactInfo","css":[{"type":"color","name":"background-color","val":"#fe675f","defVal":"#fe675f","tra":-1,"defTra":-1,"opt":0}]},{"title":"描边颜色","opt":0,"from":"#awardContactInfo","edit":"awardContactInfo","css":[{"type":"color","name":"border-color","val":"#fff","defVal":"#fff","opt":0}]}]},{"name":"WinnersBox","css":[{"title":"常规文字","opt":0,"from":"#WinnersBox .winner","css":[{"type":"size","name":"font-size","val":15,"defVal":15,"opt":0},{"type":"color","name":"color","defVal":"#fff","val":"#fff","tra":-1,"defTra":-1,"opt":0},{"type":"color","name":"text-shadow","val":"","defVal":"","opt":0}]},{"title":"奖品文字","opt":0,"from":"#WinnersBox .slideAwardName","css":[{"type":"size","name":"font-size","val":15,"defVal":15,"opt":0},{"type":"color","name":"color","val":"#fffc00","defVal":"#fffc00","tra":-1,"defTra":-1,"opt":0},{"type":"color","name":"text-shadow","val":"","defVal":"","opt":0}]},{"title":"填充颜色","opt":0,"from":"#WinnersBox","css":[{"type":"color","name":"background-color","val":"#fe675f","defVal":"#fe675f","tra":-1,"defTra":-1,"opt":0}]},{"title":"描边颜色","opt":0,"from":"#WinnersBox","css":[{"type":"color","name":"border-color","val":"#fff","defVal":"#fff","opt":0}]}]},{"name":"titleText","css":[{"title":"文字样式","opt":0,"from":".titleText","css":[{"type":"size","name":"font-size","val":18,"defVal":18,"opt":0},{"type":"color","name":"color","defVal":"#fff","val":"#fff","tra":-1,"defTra":-1,"opt":0},{"type":"color","name":"text-shadow","val":"","defVal":"","opt":0}]}]},{"name":"giftFoot","css":[{"title":"奖项等级","opt":0,"from":".giftFoot .giftRank","css":[{"type":"size","name":"font-size","val":18,"defVal":18,"opt":0},{"type":"color","name":"color","defVal":"#ff6b3a","val":"#ff6b3a","tra":-1,"defTra":-1,"opt":0},{"type":"color","name":"text-shadow","val":"","defVal":"","opt":0}]},{"title":"奖项名称","opt":0,"from":".giftFoot .giftGoods","css":[{"type":"size","name":"font-size","val":18,"defVal":18,"opt":0},{"type":"color","name":"color","defVal":"#ff6b3a","val":"#ff6b3a","tra":-1,"defTra":-1,"opt":0},{"type":"color","name":"text-shadow","val":"","defVal":"","opt":0}]}]},{"name":"theGetPricePic","pos":{"left":"2.1rem","top":"1.3rem"},"size":{"width":"11.5rem","height":"11.2rem"},"path":[["*_resRoot*/image/faiImg1-2.png","图片01","5000k"]],"edit":"theGetPricePic","formDefaultStyle":true},{"name":"theGetPricePicTwo","pos":{"left":"2.1rem","top":"1.3rem"},"size":{"width":"11.5rem","height":"11.2rem"},"path":[["*_resRoot*/image/faiImg2-2.png","图片01","5000k"]],"edit":"theGetPricePicTwo","formDefaultStyle":true},{"name":"theGetPricePicThree","pos":{"left":"2.1rem","top":"1.3rem"},"size":{"width":"11.5rem","height":"11.2rem"},"path":[["*_resRoot*/image/faiImg3-2.png","图片01","5000k"]],"edit":"theGetPricePicThree","formDefaultStyle":true},{"name":"lotsPot","pos":{"left":"4.925rem","top":"3rem"},"size":{"width":"6.15rem","height":"12.4rem"},"path":[["*_resRoot*/image/lots1.png","图片01","5000k"]],"edit":"lotsPot","formDefaultStyle":true},{"name":"lotsShakeHand","pos":{"left":"4.5rem","top":"17.9rem","forParent":"false"},"edit":"_none","formDefaultStyle":true},{"name":"playInfo","pos":{"left":"3.5rem","top":"13.6rem","forParent":"false"},"css":[{"title":"常规文字","opt":0,"from":"#playInfo","css":[{"type":"size","name":"font-size","val":14,"defVal":14,"opt":0},{"type":"color","name":"color","val":"","defVal":"#000","tra":-1,"defTra":-1,"opt":0},{"type":"color","name":"text-shadow","val":"","defVal":"#fff","tra":-1,"defTra":-1,"opt":0}]},{"title":"参与机会","opt":0,"from":"#playInfo .specil","css":[{"type":"size","name":"font-size","val":14,"defVal":14,"opt":0},{"type":"color","name":"color","val":"","defVal":"","tra":-1,"defTra":-1,"opt":0},{"type":"color","name":"text-shadow","val":"","defVal":"","tra":-1,"defTra":-1,"opt":0}]}],"edit":3,"formDefaultStyle":true},{"name":"advertising","targetName":"广告页设置","deferPath":true,"group":"home","rsize":{"width":"16rem","height":"40rem"},"path":[["*_resRoot*/image/gg.jpg","背景图片","5000k"],["*_resRoot*/image/gg.jpg","背景图片","5000k"],["*_resRoot*/image/gg.jpg","背景图片","5000k"],["*_resRoot*/image/gg.jpg","背景图片","5000k"]],"edit":"_background","formDefaultStyle":true}];
        var originMod = [{"name":"homeBoxBg","path":["https://hdg.faisys.com/image/xydzp/homeBg.jpg"],"showPath":[1],"css":[{"css":[{"opt":0,"val":"#fe675f","defVal":"#fe675f","tra":1,"defTra":1}],"opt":0}]},{"name":"titleBox","pos":{"left":"0.55rem","top":"1rem"},"size":{"width":"14.7rem","height":"5.8rem"},"path":["//hdg.faisys.com/image/xydzp/title.png"]},{"name":"xydzpGetPricePic","pos":{"left":"2rem","top":"3rem"},"size":{"width":"12.2rem","height":"15.2rem"},"path":[["//hdg.faisys.com/image/xydzp/xydzpFailImg.png"]]},{"name":"rotatePan","path":["//hdg.faisys.com/image/xydzp/rotatePan.png"]},{"name":"deviceLine","path":["//hdg.faisys.com/image/xydzp/device.png"]},{"name":"zp1","path":["//hdg.faisys.com/image/xydzp/zp1.png"]},{"name":"zp2","path":["//hdg.faisys.com/image/xydzp/zp2.png"]},{"name":"zp3","path":["//hdg.faisys.com/image/xydzp/zp3.png"]},{"name":"zp4","path":["//hdg.faisys.com/image/xydzp/zp4.png"]},{"name":"zp5","path":["//hdg.faisys.com/image/xydzp/zp5.png"]},{"name":"zp6","path":["//hdg.faisys.com/image/xydzp/zp6.png"]},{"name":"zp7","path":["//hdg.faisys.com/image/xydzp/zp7.png"]},{"name":"zp8","path":["//hdg.faisys.com/image/xydzp/zp8.png"]},{"name":"zp900","path":["//hdg.faisys.com/image/xydzp/zp900.png"]},{"name":"zp0","path":["//hdg.faisys.com/image/xydzp/zp0.png"]},{"name":"wrap"},{"name":"myAwardImg","path":["https://hdg.faisys.com/image/xydzp/myAwardImg.png"]},{"name":"contactInfoImg","path":["https://hdg.faisys.com/image/xydzp/contactInfoImg.png"]},{"name":"activeRuleImg","path":["https://hdg.faisys.com/image/xydzp/activeRuleImg.png"]},{"name":"xydzptwoImg","pos":{"left":"0rem","top":"0rem"},"size":{"width":"4rem","height":"4rem"},"path":[["//hdg.faisys.com/image/xydzp/againImg.png"]]},{"name":"xydzpAgainImg","pos":{"left":"4.5rem","top":"14.5rem"},"size":{"width":"6.8rem","height":"2rem"},"path":[["//hdg.faisys.com/image/xydzp/againImg.png"]]},{"name":"xydzpCloseImg","pos":{"left":"4.5rem","top":"14.5rem"},"size":{"width":"6.8rem","height":"2rem"},"path":[["//hdg.faisys.com/image/xydzp/closeImg.png"]]},{"name":"seeAwardDetailImg","size":{"width":"7.3rem","height":"2.5rem"},"path":[["//hdg.faisys.com/image/xydzp/seeAwardDetailImg.png"]]},{"name":"successBgImgBox","pos":{"left":"1.5rem","top":"0rem"},"size":{"width":"13rem","height":"17.8rem"},"path":[["//hdg.faisys.com/image/xydzp/successBgImg.png"]]},{"name":"ruleBox","css":[{"css":[{"opt":0,"val":15,"defVal":15},{"opt":0,"val":"#fff","defVal":"#fff","tra":-1,"defTra":-1},{"opt":0,"val":"","defVal":""}],"opt":0},{"css":[{"opt":0,"val":14,"defVal":14},{"opt":0,"val":"#fff","defVal":"#fff","tra":-1,"defTra":-1},{"opt":0,"val":"","defVal":""}],"opt":0},{"css":[{"opt":0,"val":"#fe675f","defVal":"#fe675f","tra":-1,"defTra":-1}],"opt":0},{"css":[{"opt":0,"val":"#fff","defVal":"#fff"}],"opt":0}]},{"name":"drawInfo","pos":{"left":"2.5rem","top":"1.25rem"},"css":[{"css":[{"opt":0,"val":12,"defVal":12},{"opt":0,"val":"#fa5208","defVal":"#fa5208","tra":-1,"defTra":-1},{"opt":0,"val":"","defVal":""}],"opt":0},{"css":[{"opt":0,"val":12,"defVal":12},{"opt":0,"val":"#fa5208","defVal":"#fa5208","tra":-1,"defTra":-1},{"opt":0,"val":"","defVal":""}],"opt":0}]},{"name":"myAwardBox","css":[{"css":[{"opt":0,"val":15,"defVal":15},{"opt":0,"val":"#fff","defVal":"#fff","tra":-1,"defTra":-1},{"opt":0,"val":"","defVal":""}],"opt":0},{"css":[{"opt":0,"val":15,"defVal":15},{"opt":0,"val":"#fffc00","defVal":"#fffc00","tra":-1,"defTra":-1},{"opt":0,"val":"","defVal":""}],"opt":0},{"css":[{"opt":0,"val":"#fe675f","defVal":"#fe675f","tra":-1,"defTra":-1}],"opt":0},{"css":[{"opt":0,"val":"#fff","defVal":"#fff"}],"opt":0}]},{"name":"awardContactInfo","css":[{"css":[{"opt":0,"val":15,"defVal":15},{"opt":0,"val":"#fff","defVal":"#fff","tra":-1,"defTra":-1},{"opt":0,"val":"","defVal":""}],"opt":0},{"css":[{"opt":0,"val":15,"defVal":15},{"opt":0,"val":"#fffc00","defVal":"#fffc00","tra":-1,"defTra":-1},{"opt":0,"val":"","defVal":""}],"opt":0},{"css":[{"opt":0,"val":"#fe675f","defVal":"#fe675f","tra":-1,"defTra":-1}],"opt":0},{"css":[{"opt":0,"val":"#fff","defVal":"#fff"}],"opt":0}]},{"name":"WinnersBox","css":[{"css":[{"opt":0,"val":15,"defVal":15},{"opt":0,"val":"#fff","defVal":"#fff","tra":-1,"defTra":-1},{"opt":0,"val":"","defVal":""}],"opt":0},{"css":[{"opt":0,"val":15,"defVal":15},{"opt":0,"val":"#fffc00","defVal":"#fffc00","tra":-1,"defTra":-1},{"opt":0,"val":"","defVal":""}],"opt":0},{"css":[{"opt":0,"val":"#fe675f","defVal":"#fe675f","tra":-1,"defTra":-1}],"opt":0},{"css":[{"opt":0,"val":"#fff","defVal":"#fff"}],"opt":0}]},{"name":"giftFoot","css":[{"css":[{"opt":0,"val":18,"defVal":18},{"opt":0,"val":"#ff6b3a","defVal":"#ff6b3a","tra":-1,"defTra":-1},{"opt":0,"val":"","defVal":""}],"opt":0},{"css":[{"opt":0,"val":18,"defVal":18},{"opt":0,"val":"#ff6b3a","defVal":"#ff6b3a","tra":-1,"defTra":-1},{"opt":0,"val":"","defVal":""}],"opt":0}]},{"name":"theGetPricePic","pos":{"left":"0rem","top":"0rem"},"size":{"width":"4rem","height":"4rem"},"path":[["//hdg.faisys.com/image/faiImg1-2.png"]]},{"name":"theGetPricePicTwo","pos":{"left":"0rem","top":"0rem"},"size":{"width":"4rem","height":"4rem"},"path":[["//hdg.faisys.com/image/faiImg2-2.png"]]},{"name":"theGetPricePicThree","pos":{"left":"0rem","top":"0rem"},"size":{"width":"4rem","height":"4rem"},"path":[["//hdg.faisys.com/image/faiImg3-2.png"]]},{"name":"lotsPot","pos":{"left":"4.9rem","top":"3rem"},"size":{"width":"6.15rem","height":"12.4rem"},"path":[["//hdg.faisys.com/image/lots1.png"]]},{"name":"lotsShakeHand","pos":{"left":"4.5rem","top":"17.9rem"}},{"name":"advertising","path":["https://hdg.faisys.com/image/gg.jpg"]}];
        hg.edit.isMod = true;
        
        function initAdvertisingHTML (pathDef) {
            var $advertisingBox = document.querySelector(".advertisingBox");
            var $wrapper = $advertisingBox.querySelector(".swiper-wrapper");
            var $pagination = $advertisingBox.querySelector(".swiper-pagination");
            var html = {
                wrapper: "",
                pagination: ""
            };
            var random = -1;
            

            for (var i = 0, len = 4; i < len; i++) {
                var src = (path[i] || pathDef[0])[0];

                html.wrapper += '<div class="swiper-slide ' + (random !== -1 ? (i === random ? "" : "hide") : "")+ '">' +
                    '<div class="advertisingItem imgPreventDefault hd-Special-bgImgInfo editTarget-advertising' + (i > 0 ? "-" + i : "") + '" width="100%" style="background-image: url(' + src.replace("*_resRoot*", window._resRoot) + ');" data-src="' + src.replace("*_resRoot*", window._resRoot) + '"></div>' +
                '</div>';

                if (len != 1) {
                    html.pagination += '<span data-index="' + i + '" class="swiper-pagination-bullet ' + ((random !== -1 ? i === random : i === 0) ? "swiper-pagination-bullet-active" : "") + ' ' + (!(i < 1) ? "hide" : "") + '"></span>';
                }
            }

            $wrapper.innerHTML = html.wrapper;
            $pagination.innerHTML = html.pagination;
        }
        var correct = function(list1,list2){
            return list2.map(function(val2){
                return list1.filter(function(val1){return val1.name === val2.name;})[0] || val2;
            });
        }
        var correctPaths = function(pathDef,path){
            if(!path || !pathDef || !isArray(pathDef[0])) return;
            if(!isArray(path[0])){
                path[0] = [path[0]];
                path.length = 1;
            }
            if(pathDef.length > path.length){ //同步数据结构
                pathDef.forEach(function(defv,i){
                    if(i >= path.length){
                        path.push(defv);
                    }
                });
            }
        }
        originMod = originMod ? correct(originMod,originDef) : originMod;
        origin = originMod ? correct(origin,originMod) : correct(origin,originDef);
        for(var i=0;i < originDef.length;i++){
            var path = origin[i].path;
            var pathDef = originDef[i].path;
            var pathMod = originMod ? originMod[i].path : null;
            var notDeferPath = !originDef[i].deferPath;
            var isAdvertising = origin[i].name == 'advertising';
            correctPaths(pathDef,pathMod);
            correctPaths(pathDef,path);
            pathDef = pathMod || pathDef;
            if(pathDef){
                if(!path){
                    origin[i].path = path = pathDef;
                }
                if(isArray(path[0])){
                    for(var j=0;j < pathDef.length;j++){
                        if(!path[j]) path[j] = pathDef[j];
                        if(!path[j][0]) path[j][0] = pathDef[j][0];
                        notDeferPath && hg.assets.add(originDef[i].group,path[j][0].replace('*_resRoot*',_resRoot));
                    }
                }else{
                    if(!path[0]) path[0] = pathDef[0];
                    if(!isAdvertising && notDeferPath || (isAdvertising && isOpenAdvertise)){
                        hg.assets.add(originDef[i].group, path[0].replace(/\*_resRoot\*/g, _resRoot));
                    }
                }
            }
            if( isAdvertising && ( _manage || isOpenAdvertise) ){
                initAdvertisingHTML(pathDef);
            }
        }
        if(false){
            hg.assets.add("");
        }
        if(false && origin[1].path[0] == _resRoot + "/image/tgcm/answer.png"){
            origin[1].path[0] = [_resRoot + "/image/tgcm/drag.png"];
        }
        hg.edit.origin = origin;
        hg.edit.originDef = originDef;
        hg.edit.originMod = originMod;
    })(hg);
    
    /*-----------------------资源loading-----------------------------*/
    ;(function(){
        hg.assets.add([
            "//hd.faisys.com/version2/image/nopic.jpg","//hdg.faisys.com/image/ruleImg.png","//hdg.faisys.com/image/success.png","//hdg.faisys.com/image/light.png","//hdg.faisys.com/image/musicOff.png","//hdg.faisys.com/image/musicOn.png","//hdg.faisys.com/image/manImg.jpg",
        
            '//hdg.faisys.com/image/faiImg.png?v=201509171041',
        
        ]); 
        loadGamePreAssets();
        //if(false){
            hg.assets.add("home",["//hdg.faisys.com/image/xydzp/homeBg.jpg","//hdg.faisys.com/image/xydzp/title.png"]);
        //}
        hg.assets.loadPage();//开始loading页面
    })();
    //全局变量
    var g_config = {"showSkillSup":true,"showSlide":false,"isOpenAreaLimit":false,"isCheckPlayTimes":true,"showMenu":true,"buy":false,"isNewGame":false,"isModel":false,"test":false,"isOem":false,"scoreType":false,"showLogo":false,"isShowNoAwardTips":false,"isopenVCode":false,"flag":79878,"flagB":2304,"countsTimeType":-1,"sortType":-1,"drawLimitDef":0,"scoreSet":0,"style":75,"aid":13751381,"gameId":4,"openId":"manager","playerId":0,"userName":"ee","headImg":"//hdg.faisys.com/image/manImg.jpg","pToken":"bDN4bDNkcDN59WO13TZj8TY5ImMxAjY","authVer":0,"jumpType":1,"hostLink":"","scoreUnit":"分","testCMD":"","ajaxUrl":"//yx.hd.fkw.com/ajax/","startTime":"2018-09-03 10:07","$startTime":1535940458000,"$endTime":1536545258000,"setGameTimeInterval":10,"isDoubleGame":false,"awardList":[{"hbtype":0,"optx":false,"servicepho":"","attentionimg":"","aimgw":"4.6rem","cashinfo":"","pot":0,"cet":1536595199000,"amount":0,"aimg":"//hdg.faisys.com/image/xydzp/theGift.png?v=201802231034","excelName":"","btn":"了解更多","style":"一等奖","tlmt":"[8]","btl":"","txn":"兑奖须知","floatBegin":500,"hbAverage":1000,"name":"价值100元礼品","floatEnd":1500,"continfo":3,"needlessconsume":false,"aimgh":"5.8rem","iscuscode":false,"t_type":"DATE_TYPE_FIX_TIME_RANGE","cfbt":0,"attention":1,"txc":"联系商家出示兑奖码","cbt":1535904000000,"ocimg":false,"genewxcard":false,"awardtype":2,"stl":"","cft":30,"oct":false,"oplink":false,"opti":"凭券联系现场工作人员兑奖","onlinect":1,"cashtype":2,"iscancelver":false,"cashsite":"请填写您的兑奖地址或者门店地址","storeType":1,"opqrc":true,"level":1,"payment":1,"passwordrednum":100,"offset":0},{"hbtype":0,"optx":false,"servicepho":"","attentionimg":"","aimgw":"4.6rem","cashinfo":"","pot":0,"cet":1536595199000,"amount":0,"aimg":"//hdg.faisys.com/image/xydzp/theGift.png?v=201802231034","excelName":"","btn":"了解更多","style":"二等奖","tlmt":"[8]","btl":"","txn":"兑奖须知","floatBegin":500,"hbAverage":1000,"name":"价值50元礼品","floatEnd":1500,"continfo":3,"needlessconsume":false,"aimgh":"5.8rem","iscuscode":false,"t_type":"DATE_TYPE_FIX_TIME_RANGE","cfbt":0,"attention":1,"txc":"联系商家出示兑奖码","cbt":1535904000000,"ocimg":false,"genewxcard":false,"awardtype":2,"stl":"","cft":30,"oct":false,"oplink":false,"opti":"凭券联系现场工作人员兑奖","onlinect":1,"cashtype":2,"iscancelver":false,"cashsite":"请填写您的兑奖地址或者门店地址","storeType":1,"opqrc":true,"level":2,"payment":1,"passwordrednum":100,"offset":0},{"hbtype":0,"optx":false,"servicepho":"","attentionimg":"","aimgw":"4.6rem","cashinfo":"","pot":0,"cet":1536595199000,"amount":0,"aimg":"//hdg.faisys.com/image/xydzp/theGift.png?v=201802231034","excelName":"","btn":"了解更多","style":"三等奖","tlmt":"[8]","btl":"","txn":"兑奖须知","floatBegin":500,"hbAverage":1000,"name":"价值10元礼品","floatEnd":1500,"continfo":3,"needlessconsume":false,"aimgh":"5.8rem","iscuscode":false,"t_type":"DATE_TYPE_FIX_TIME_RANGE","cfbt":0,"attention":1,"txc":"联系商家出示兑奖码","cbt":1535904000000,"ocimg":false,"genewxcard":false,"awardtype":2,"stl":"","cft":30,"oct":false,"oplink":false,"opti":"凭券联系现场工作人员兑奖","onlinect":1,"cashtype":2,"iscancelver":false,"cashsite":"请填写您的兑奖地址或者门店地址","storeType":1,"opqrc":true,"level":3,"payment":1,"passwordrednum":100,"offset":0},{"hbtype":0,"optx":false,"servicepho":"","attentionimg":"","aimgw":"4.6rem","cashinfo":"","pot":0,"cet":1536595199000,"amount":0,"aimg":"//hdg.faisys.com/image/xydzp/theGift.png?v=201802231034","excelName":"","btn":"了解更多","style":"四等奖","tlmt":"[8]","btl":"","txn":"兑奖须知","floatBegin":500,"hbAverage":1000,"name":"价值5元小礼品","floatEnd":1500,"continfo":3,"needlessconsume":false,"aimgh":"5.8rem","iscuscode":false,"t_type":"DATE_TYPE_FIX_TIME_RANGE","cfbt":0,"attention":1,"txc":"联系商家出示兑奖码","cbt":1535904000000,"ocimg":false,"genewxcard":false,"awardtype":2,"stl":"","cft":30,"oct":false,"oplink":false,"opti":"凭券联系现场工作人员兑奖","onlinect":1,"cashtype":2,"iscancelver":false,"cashsite":"请填写您的兑奖地址或者门店地址","storeType":1,"opqrc":true,"level":4,"payment":1,"passwordrednum":100,"offset":0},{"hbtype":0,"optx":false,"servicepho":"","attentionimg":"","aimgw":"4.6rem","cashinfo":"","pot":0,"cet":1536595199000,"amount":0,"aimg":"//hdg.faisys.com/image/xydzp/theGift.png?v=201802231034","excelName":"","btn":"了解更多","style":"五等奖","tlmt":"[8]","btl":"","txn":"兑奖须知","floatBegin":500,"hbAverage":1000,"name":"价值5元小礼品","floatEnd":1500,"continfo":3,"needlessconsume":false,"aimgh":"5.8rem","iscuscode":false,"t_type":"DATE_TYPE_FIX_TIME_RANGE","cfbt":0,"attention":1,"txc":"联系商家出示兑奖码","cbt":1535904000000,"ocimg":false,"genewxcard":false,"awardtype":2,"stl":"","cft":30,"oct":false,"oplink":false,"opti":"凭券联系现场工作人员兑奖","onlinect":1,"cashtype":2,"iscancelver":false,"cashsite":"请填写您的兑奖地址或者门店地址","storeType":1,"opqrc":true,"level":5,"payment":1,"passwordrednum":100,"offset":0},{"hbtype":0,"optx":false,"servicepho":"","attentionimg":"","aimgw":"4.6rem","cashinfo":"","pot":0,"cet":1536595199000,"amount":0,"aimg":"//hdg.faisys.com/image/xydzp/theGift.png?v=201802231034","excelName":"","btn":"了解更多","style":"六等奖","tlmt":"[8]","btl":"","txn":"兑奖须知","floatBegin":500,"hbAverage":1000,"name":"价值5元小礼品","floatEnd":1500,"continfo":3,"needlessconsume":false,"aimgh":"5.8rem","iscuscode":false,"t_type":"DATE_TYPE_FIX_TIME_RANGE","cfbt":0,"attention":1,"txc":"联系商家出示兑奖码","cbt":1535904000000,"ocimg":false,"genewxcard":false,"awardtype":2,"stl":"","cft":30,"oct":false,"oplink":false,"opti":"凭券联系现场工作人员兑奖","onlinect":1,"cashtype":2,"iscancelver":false,"cashsite":"请填写您的兑奖地址或者门店地址","storeType":1,"opqrc":true,"level":6,"payment":1,"passwordrednum":100,"offset":0},{"hbtype":0,"optx":false,"servicepho":"","attentionimg":"","aimgw":"4.6rem","cashinfo":"","pot":0,"cet":1536595199000,"amount":0,"aimg":"//hdg.faisys.com/image/xydzp/theGift.png?v=201802231034","excelName":"","btn":"了解更多","style":"七等奖","tlmt":"[8]","btl":"","txn":"兑奖须知","floatBegin":500,"hbAverage":1000,"name":"价值5元小礼品","floatEnd":1500,"continfo":3,"needlessconsume":false,"aimgh":"5.8rem","iscuscode":false,"t_type":"DATE_TYPE_FIX_TIME_RANGE","cfbt":0,"attention":1,"txc":"联系商家出示兑奖码","cbt":1535904000000,"ocimg":false,"genewxcard":false,"awardtype":2,"stl":"","cft":30,"oct":false,"oplink":false,"opti":"凭券联系现场工作人员兑奖","onlinect":1,"cashtype":2,"iscancelver":false,"cashsite":"请填写您的兑奖地址或者门店地址","storeType":1,"opqrc":true,"level":7,"payment":1,"passwordrednum":100,"offset":0},{"hbtype":0,"optx":false,"servicepho":"","attentionimg":"","aimgw":"4.6rem","cashinfo":"","pot":0,"cet":1536595199000,"amount":0,"aimg":"//hdg.faisys.com/image/xydzp/theGift.png?v=201802231034","excelName":"","btn":"了解更多","style":"八等奖","tlmt":"[8]","btl":"","txn":"兑奖须知","floatBegin":500,"hbAverage":1000,"name":"价值5元小礼品","floatEnd":1500,"continfo":3,"needlessconsume":false,"aimgh":"5.8rem","iscuscode":false,"t_type":"DATE_TYPE_FIX_TIME_RANGE","cfbt":0,"attention":1,"txc":"联系商家出示兑奖码","cbt":1535904000000,"ocimg":false,"genewxcard":false,"awardtype":2,"stl":"","cft":30,"oct":false,"oplink":false,"opti":"凭券联系现场工作人员兑奖","onlinect":1,"cashtype":2,"iscancelver":false,"cashsite":"请填写您的兑奖地址或者门店地址","storeType":1,"opqrc":true,"level":8,"payment":1,"passwordrednum":100,"offset":0}],"comfort":{"hbtype":0,"comoptx":false,"comservicephone":"","comattentionimg":"","comcashinfo":"","comimgw":"4.6rem","comcet":1536595199000,"pot":0,"comLimitNum":false,"amount":0,"comimg":"//hdg.faisys.com/image/xydzp/theGift.png?v=201802231034","excelName":"","combtn":"了解更多","cas":"安慰奖","ctlmt":"[8]","combtl":"","comtxn":"兑奖须知","floatBegin":500,"hbAverage":1000,"ca":"价值5元小礼品","floatEnd":1500,"comcontinfo":3,"comNeedLessConsume":false,"comimgh":"5.8rem","comiscuscode":false,"cttype":"DATE_TYPE_FIX_TIME_RANGE","comfbt":0,"comattention":1,"comcbt":1535904000000,"comtxc":"联系商家出示兑奖码","comoci":false,"genewxcard":false,"comAwardtype":2,"comft":30,"comstl":"","comOplink":false,"comoct":false,"comopti":"凭券联系现场工作人员兑奖","conlinect":1,"comNum":0,"comiscancelver":false,"comcashtype":2,"comcashsite":"请填写您的兑奖地址或者门店地址","comOpqrc":true,"comStoreType":1,"cc":""},"bestRankInfo":{},"awardInfoB":"","openAwardLinkNoDraw":false,"userInfo":{},"awardUsername":"","awardPhone":"","awardAddress":"","addressNum":"","status":0,"afterWxCard":true,"haveAward":false,"showHelpGuide":false,"ipInfo":{},"contactNoDraw":"[{\"name\":\"姓名\",\"key\":\"ausername\",\"isOpen\":true},{\"name\":\"联系电话\",\"key\":\"aphone\",\"isOpen\":true},{\"name\":\"联系地址\",\"key\":\"aadress\",\"isOpen\":false}]","isAOpenId":0,"linkInfoType":1,"afterLinkModify":true,"shareDeep":0,"isFromZhuliShare":false,"qrCodeUrl":"https://16968500.h40.faiusr.com/2/ACgIABACGAAg6MOo3AUomMjoTDCQAziQAw.jpg","isAngular":true,"_preview":false,"$$awardTypeInfo":{"def":{"collect":"收藏兑奖券","showcashtype":false,"showsitebox":true,"qrcode":false,"showcopy":true,"opti":"凭券联系现场工作人员兑奖","codename":"兑奖码","details":"兑奖券详情","deadline":"兑奖期限","showwxcard":true,"notice":"兑奖须知","cuscode":true,"cashsite":"请填写您的兑奖地址或者门店地址","sitetype":"text","site":"","term":true,"btn":"立即兑奖","isHdGift":false,"isJZcoupon":false},"2":{"showcashtype":true,"1":{"1":{"sitetype":"img"},"2":{"cashsite":"http://","sitetype":"url"}},"2":{"sitetype":"text"},"3":{"showsitebox":false,"sitetype":"img","opti":"复制券码发送到公众号","btn":"前往公众号兑奖"},"4":{"opti":"点击\u201C立即兑奖\u201D跳转到兑奖界面","cashsite":"http://","sitetype":"url","site":"网页链接"},"site":"兑奖地址"},"0":{"collect":"收藏优惠券","opti":"到店后向店员出示","codename":"优惠码","details":"优惠券详情","deadline":"使用期限","notice":"使用须知","sitetype":"text","cashsite":"请填写您的门店地址","site":"门店地址"},"1":{"collect":"收藏优惠券","opti":"购物时凭优惠码联系客服兑奖","codename":"优惠码","details":"优惠券详情","deadline":"使用期限","notice":"使用须知","sitetype":"url","cashsite":"http://m.jd.com","site":"商城地址","btn":"进入商城"},"5":{"collect":"收藏口令码","showsitebox":false,"codename":"口令码","deadline":"领取期限","showwxcard":false,"notice":"领取须知","cuscode":false,"term":false,"0":{"sitetype":"img","opti":"复制口令发送到公众号","btn":"前往公众号兑奖"},"1":{"sitetype":"wxUrl","opti":"点击下方\"立即领取\"进行兑奖","btn":"立即领取","showcopy":false}},"4":{"collect":"收藏兑奖券","opti":"到店后向店员出示","codename":"优惠码","details":"优惠券详情","deadline":"使用期限","qrcode":"auto","showwxcard":false,"notice":"使用须知","sitetype":"none","btn":"领取到微信卡包"},"6":{"isHdGift":true,"term":false,"cuscode":false,"showwxcard":false,"showsitebox":false,"0":{"sitetype":"img","opti":"复制口令发送到公众号","btn":"前往公众号兑奖"},"1":{"sitetype":"wxUrl","opti":"点击下方\"立即兑奖\"输入手机号码充值","btn":"立即兑奖","showcopy":false}},"7":{"isHdGift":true,"term":false,"cuscode":false,"showwxcard":false,"showsitebox":false,"0":{"sitetype":"img","opti":"复制口令发送到公众号","btn":"前往公众号兑奖"},"1":{"sitetype":"wxUrl","opti":"点击下方\"立即兑奖\"输入手机号码充值","btn":"立即兑奖","showcopy":false}},"8":{"isHdGift":true,"collect":"收藏优惠券","term":false,"cuscode":false,"showwxcard":false,"showsitebox":false,"0":{"sitetype":"img","opti":"复制口令发送到公众号","btn":"前往公众号兑奖"},"1":{"sitetype":"wxUrl","opti":"点击下方\"获取卡密\"获取激活码","btn":"获取卡密","showcopy":false}},"9":{"isJZcoupon":true,"term":false,"cuscode":false,"showsitebox":false}},"$$ptTotalPlayer":0,"$$isProduction":true,"areaLimitList":[],"linkInfoAll":true,"isForbidShareactivity":false,"drawType":0,"isOldZhuliGame":false,"createTime":1535940458000,"isYKY":false,"awardNum":3,"openComfort":false,"storeId":0,"areaId":0,"ykyWXOpenId":"","ykyRelationId":"","redPacketUrl":"https://hd.faisco.cn/13751381/4/jumptoRedPacket.html?gameAppid=wx50775cad5d08d7ad","sendGiftUrl":"https://hd.faisco.cn/13751381/4/gift_Exchange.html","sendVideoVipUrl":"https://hd.faisco.cn/13751381/4/videoVip_Exchange.html","ishasAttentiosThisAPP":false,"clickTips":{"clickSrc":"//hdg.faisys.com/image/clickView.png","pointW":"2rem","pointH":"2rem","clickW":"3.3rem","clickH":"3.65rem"},"acctOpenId":"","achieveToken":"","isOldFaiImgGame":false,"verInfo":{"freName":"免费版","byName":"白银版","bjName":"铂金版","zsName":"钻石版","freClass":"ver_free","byClass":"ver_by","bjClass":"ver_biz","zsClass":"ver_zs","verName":"免费版","verClass":"ver_free","ver":0,"createVer":0,"authVer":0,"realVer":0,"createAuthVer":0,"maxAuthVer":0,"gameAmountLimit":500,"awardAmountLimit":2000,"map":{"0":{"class":"ver_free","name":"免费版"},"1":{"class":"ver_by","name":"白银版"},"2":{"class":"ver_biz","name":"铂金版"},"3":{"class":"ver_zs","name":"钻石版"}}},"initTime":0,"initTimeSign":"e6a0658f7c97eb6ec24c303c7b189536","urlToken":"4","freeFirstPublish":false,"openAdvertising":false,"openAdvertisingLimitDisplay":true,"advertisingTime":3,"openAdvertisingForceWatch":false,"advertisingDisplayModel":1,"isVersion3":true,"HWRatio":1.608,"minBgH":25.728};
    var isPublish = false;
    var HdVerDef = {
        FREE : 0,  //免费版
        BY : 1,  //白银版
        BJ : 2,  //铂金版
    };  
    function isArray(arr){
        return Object.prototype.toString.call(arr) === "[object Array]";
    }
    var isOldAwardPage = false;
    g_config.fromGuideShare = false;
    g_config.$$sensitWordAndAdvance = [{"sensword":"游戏","adVance":"活动"},{"sensword":"红包","adVance":"hong包"},{"sensword":"紅包","adVance":"hong包"},{"sensword":"分享","adVance":"fen享"},{"sensword":"现金","adVance":"xian金"},{"sensword":"朋友圈","adVance":"peng友圈"},{"sensword":"福利","adVance":"fu利"}];
    g_config.useSwiperBanner = true;
</script>
<script type="text/javascript" src="js/jquery-core.min.js?v=201807181427"></script>
<script type='text/javascript' src="js/jquery-ui-core.min.js?v=201808201752"></script>
<script type="text/javascript" src="js/hdUtil.min.js?v=201808061807"></script>
<script type="text/javascript" src="js/hdgame.min.js?v=201808211654"></script>
<script type='text/javascript' src="js/hdgame_manage.min.js?v=201808211458"></script>
<script type="text/javascript" src="js/lufylegend_simplify.min.js?v=201806191755"></script>
<script type="text/javascript" src="js/singlePageSet.min.js?v=201804231755"></script>
<script type="text/javascript">

$(function(){
    $('body').addClass('version3');
});

HdGame.Res.config({
    js_city: '//hdg.faisys.com/js/comm/city2.min.js?v=201801031822',
    swiper_simple: "//hdg.faisys.com/js/swiper_simple.min.js?v=201808231118"
});
function $$(selector){
    if(!_manage||_preview){
        return $('#__notfound__');
    }
    return parent.$(selector);
}
HdGame.gameDomain = 'hd.faisco.cn';
HdGame.gameDomainIgnoreStyle = 'hd.faisco.cn';
if(false){
    HdGame.gameDomain = 'hd.webportal.top';
    HdGame.gameDomainIgnoreStyle = 'hd.webportal.top';
}
HdGame.isReg = false;
if(_manage&&!_preview){
    if(parent != self){
        $(function() {
            parent.$$.fire("ready");
        });
        parent.$$.win = window;
    }
}
/*---------------游戏函数回调--------------------*/
HdGame.initCallBack(hg,['startGame','beforeStartGame','startGamehead','home','again','jsFootEnd','showResult','changeBottomBar','showPoup','hidePoup','timeChange','beforeDraw','updateRankList','afterDraw','editBackground','luckDrawErr','scrollEvent','beforeStartGiftEvent']); //hdgame
hg.register(['setGameType','hpInit','hgLoadEnd','save','changeShow','showTabByStyle','changeAwardNum','changeAwardImg','changeContactImg','isLimit', 'changeTopBar', 'advertisingSetting', 'bannerNumberChange']); //hdportal
hg.showGameBox = true; //是否在开始游戏时默认显示游戏页
/*----------------------------可编辑元素包装------------------------------------*/
if(hg.edit){
    HdGame.initEdit(hg.edit);
}
function parseRemToPx(rem){
    if(rem.indexOf('rem') === -1){
        return parseFloat(rem);
    }
    return parseFloat(rem)*g_rem;
}
function parsePxToRem(px){
    if(px.indexOf('px') === -1){
        return px;
    }
    return parseFloat(px)/g_rem + 'rem';
}
/*----------------------------------计时------------------------------------*/
hg.time = null;

/*----------------------------------计分------------------------------------*/

hg.grade = HdGame.initGrade();

/*----------------------------------声音-----------------------------------*/
hg.sound = HdGame.initSound([{"path":"//hdg.faisys.com/image/jrdpd/bgmusic04H.mp3","fileName":"背景音乐.mp3","optFlag":0},{"path":"//hdg.faisys.com/image/zhuanpan/zhuanpan.mp3","fileName":"转盘音效.mp3","optFlag":2}],[{"path":"*_resRoot*/image/jrdpd/bgmusic04H.mp3","fileName":"背景音乐.mp3","optFlag":0},{"path":"*_resRoot*/image/zhuanpan/zhuanpan.mp3","fileName":"转盘音效.mp3","optFlag":2}],[{"path":"//hdg.faisys.com/image/jrdpd/bgmusic04H.mp3","fileName":"背景音乐.mp3","optFlag":0},{"path":"//hdg.faisys.com/image/zhuanpan/zhuanpan.mp3","fileName":"转盘音效.mp3","optFlag":2}]);

    hg.sound.readyPlay(0,0,'loop');
    wx.ready(function () {
        hg.sound.readyPlay(0,0,'loop');
    });


/*--------------------------------------------------*/
/*----------------------------------获取ip信息-----------------------------------*/
(function(){
    var curFontSize = parseFloat($("html").css("font-size")),isSpecial = false;
    if(curFontSize != g_rem) {
        var rate = curFontSize / g_rem;
        if(rate < 0.9 || rate > 1.1) {
            isSpecial = true;
        }
    }
    HdGame.logStd("rem-special","width:" + $('html')[0].getBoundingClientRect().width + "|g_rem:" + g_rem + "|isSpecial:" + isSpecial + "|oldFontSize:" + curFontSize + "|userAgent:" + navigator.userAgent);
})();

  
        HdGame.showAccessKeyPopup({
            title: "输入访问密钥后进入活动",
            manage: _manage
        });
  

</script>

<script type="text/javascript">
HdGame.initWxConfig({"isHideShareBtn":false,"isHideMenuItems":false,"fullUrl":"https://yx.hd.fkw.com/13751381/4/load.html?style=75","plInfo":{},"nameList":["一等奖","二等奖","三等奖","四等奖","五等奖","六等奖","七等奖","八等奖","安慰奖"],"jsSdkAppid":"wx50775cad5d08d7ad","timestamp":"1535963736","nonce_str":"ab6b51aa-7b18-4ca1-af06-4255e404cb2e","signature":"eb6a2b808a75052eb89d7fabc72cd24fb312e458","cardTicket":"","dynamicShareUrlRootEmpty":false,"dynamicShareUrlRoot":"http://yx.hd.fkw.com/","fsl":"a","shareDeep":0,"checkControlLevel":0,"openStrongAttention":false,"shareImg":"//hd.faisys.com/image/game/l_xydzp.jpg?v=201508111845","activeName":"参与活动赢大奖","wxShareText_def":"轻轻松松就能抽到大奖，积攒多年的人品终于有用了，你也赶紧来抽奖吧！！","wxShareText_award":"我已经在活动中抽到了<span class=\"tag\" contenteditable=\"false\">奖品名称<\/span>，你也快来抽大奖吧！","wxShareText_rank":"","addDrawTime":1})

</script>
<script type="text/javascript">
var GameArg = {
    running : true,
    awardNum : 3,
    openComfort : false,
    interval : '',
    isInterval : false,
    startStatus : true,
    exampleList : '',
    playerAwardList : '',
    List : '',
    //开始轮播的获奖记录下标
    startIndex : 3, 
    //每次轮播显示多少条记录
    showNum : 3,
    //copy编辑页设置的奖项css ---  我的奖品
    awardTextColor : $(".awardText").css('color'),
    awardTextFontSize : $(".awardText").css('font-size'),
    awardTextShadow : $(".awardText").css('text-shadow'),
    awardInfoDetailColor : $(".awardInfoDetail").css('color'),
    awardInfoDetailFontSize : $(".awardInfoDetail").css('font-size'),
    awardInfoDetailShadow : $(".awardInfoDetail").css('text-shadow'),
    //copy编辑页设置的奖项css ---  获奖轮播
    winnerColor: '',
    winnerFontSize: '',
    winnerShadow: '',
    slideAwardNameColor: '',
    slideAwardNameFontSize: '',
    slideAwardNameShadow: ''
};
(function(){
    //初始化奖项和轮播样式
    function initCss(){
        GameArg.winnerColor = $(".winner").css('color');
        GameArg.winnerFontSize = $(".winner").css('font-size');
        GameArg.winnerShadow = $(".winner").css('text-shadow');
        GameArg.slideAwardNameColor = $(".slideAwardName").css('color');
        GameArg.slideAwardNameFontSize = $(".slideAwardName").css('font-size');
        GameArg.slideAwardNameShadow = $(".slideAwardName").css('text-shadow');
    }

    hg.on('scrollEvent',function(isScroll){
        if(!isScroll){
            $(window).scrollTop(0);
            $("#favoritePanel").scrollTop(0);
            $('.activity-lottery-winning').css('overflow','hidden');
            $('.activity-lottery-winning').on('touchmove.box',function(){
                return false;
            });
        }else{
            showAward();
            $(".home").removeClass('overflow-y-hidden');
            $('.activity-lottery-winning').css('overflow','scroll');
            $('.activity-lottery-winning').off('touchmove.box').on('touchmove',function(){
                return true;
            });
        }
    });

    //获取最新的奖品列表进行展示
    function showAward(){
        if(!_manage){
            $.ajax({
                type : 'post',
                url : "//yx.hd.fkw.com/ajax/hdgame_h.jsp?cmd=getGiftList&aid=13751381&style=75&gameId="+g_config.gameId+"&openId="+g_config.openId,
                error : function(){ 
                    HdGame.showMsg( '服务繁忙，请稍候重试' );
                },
                success : function(data){
                    var result = $.parseJSON(data);
                    HdGame.logDog(1000011);
                    if(result.success){
                        var awardList = result.list ? result.list : [];
                        var myAwardInfo = "";
                        for(var i = 0 ; i < awardList.length ; i++){ 
                           myAwardInfo += '<div id="codeInfo'+i+'" class="codeInfoBox" style="color:'+GameArg.awardTextColor+'; font-size:'+GameArg.awardTextFontSize+'; text-shadow:'+GameArg.awardTextShadow+';">'+
                                    '<div class="awardLimitBox">'+
                                        '<span class="awardStyle"></span>：<span class="awardName"></span>'+
                                    '</div>'+
                                    '<span class="awardInfoDetail" style="color:'+GameArg.awardInfoDetailColor+'; font-size:'+GameArg.awardInfoDetailFontSize+'; text-shadow:'+GameArg.awardInfoDetailShadow+';">查看详情</span>'+
                            '</div>';
                            if(i<awardList.length-1){
                                myAwardInfo += '<div class="infoDeviceLine"></div>';
                            }
                        }
                        $('#myAwardInfo').html(myAwardInfo);
                        if(awardList.length == 0){
                            $('#myAwardInfo').html('<div style="line-height: 2.6rem; padding-left: 0.05rem;">暂无中奖记录</div>');
                        }
                    }else{
                        $('#myAwardInfo').html('<div style="line-height: 2.6rem; padding-left: 0.05rem;">暂无中奖记录</div>');
                    }
                    if(awardList){
                        $.each(awardList, function(i,item) {
                            var award = _manage ? item : item._award;
                            var codeInfo = $('#myAwardInfo').find('#codeInfo'+i);
                            var myAwardInfo = $.parseJSON(awardList[i].myAwardInfo);
                            HdGame.watch("awardList[0].style",_manage?award.style:item.awardStyle,function(val){
                                codeInfo.find('.awardStyle').text(val);
                            });
                            HdGame.watch("awardList[0].name", _manage?award.name:item[item.anwei?'award':'awardName'],function(val){
                                codeInfo.find('.awardName').text(val);
                            });
                            codeInfo.data("data", item);
                        });
                    }  
                }
            }); 
        }
    }

    (function(g){
        if(!_manage){
            initCss();
        }else{
            setTimeout(function(){
                initCss();
            },2000);
        }
        $(".menuBtnBox").addClass("showAttentionBtn");

        // 排列的奖品的等级，顺时针排列
        var prizeDeg = [
            [900,900,0,1],
            [900,2,0,1],
            [900,2,900,3,0,1],
            [900,2,3,4,0,1],
            [2,900,3,900,4,5,0,1],
            [2,900,3,0,4,5,6,1],
            [1,0,2,3,900,4,5,6,7,900],
            [1,900,2,3,0,4,5,6,7,8],
        ];

        var steps = [];
        steps.start = false;
        steps.now = steps.deg = 0;
        var zhuanpanArg = null;//结果弹出层参数
        window.requestAnimFrame = (function() {
              return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame ||
              function(callback) {
                window.setTimeout(callback, 1000/60);
            }
        })();
        g.setzpByAwardnum = function(awardNum,openComfort){
            awardNum >= 0 && (g.awardNum = awardNum);
            typeof openComfort != 'undefined' && (g.openComfort = openComfort);
            var posList = prizeDeg[g.awardNum-1];
            // $('#outerImg').attr('src','//hdg.faisys.com/image/zhuanpan/new/bg'+posList.length+'.png');
            var newAwardShow = $('#newAwardShow');
            newAwardShow.html('');
            setZp(posList,function(index,val,data){
                var img = $('.editTarget-zp'+val).eq(0).clone();
                var deviceLine = $('.editTarget-deviceLine').eq(0).clone().removeClass("hide");
                newAwardShow.append(img.css({
                    width : data.size,
                    height : data.size,
                    top : data.off,
                    left : data.off,
                    transform : 'rotate('+data.deg+'deg) translateY('+data.tranY+'px)',
                }));
                newAwardShow.append(deviceLine.css({
                    width : 0.08 * g_rem,
                    height : 6.15 * g_rem,
                    top : 1.85 * g_rem,
                    left : 7.95 * g_rem,
                    transform : 'rotate('+data.lineDeg+'deg)',
                }));
                img.on('load',function(){
                    var imgTmp = new Image();   
                    imgTmp.src = this.src;
                    var imgWidth = imgTmp.naturalWidth;
                    var imgHeight = imgTmp.naturalHeight;

                    if (HdGame.Img.isNull(imgWidth) || imgWidth == 0 || HdGame.Img.isNull(imgHeight) || imgHeight == 0) {
                        imgWidth = this.naturalWidth;
                        imgHeight = this.naturalHeight;
                    }
                    var size = HdGame.Img.calcSize(imgWidth, imgHeight, data.size, data.size, HdGame.Img.MODE_SCALE_DEFLATE_FILL, true);
                    $(this).css({
                        width : size.width,
                        height : size.height,
                        top : data.off  + (data.size - size.height)/2,
                        left : data.off + (data.size - size.width)/2,
                    })
                });
            });
            updateImg();
        };
        
        hg.on('changeAwardNum',g.setzpByAwardnum);

        g.updateAwardImg = function(awardNum,openComfort,linkInfoType){
            awardNum >= 0 && (this.awardNum = awardNum);
            awardNum = this.awardNum;
            typeof openComfort != 'undefined' && (this.openComfort = openComfort);
            setTimeout(function(){
                //更新奖项可编辑图片列表
                var imgArgList = hg.edit.cache['edit-all'];
                var hideImgList = [0,1,14,15,16,17,18,19,20,21];
                var showImgList = [2,3,13];
                if(imgArgList){
                    for(var i=0; i < hideImgList.length; i++){
                        imgArgList[hideImgList[i]].hide = true;
                    }
                    for(var i=0; i < showImgList.length; i++){
                        imgArgList[showImgList[i]].hide = false;
                    }
                    imgArgList[12].hide = !g.openComfort;
                    for(var i=0; i < 8; i++){
                        imgArgList[4+i].hide = i + 1 > awardNum;
                    }
                }
            },0);
        };
        hg.on('changeAwardNum',g.updateAwardImg);

        g.updateAgainImg = function(val,times){
            setTimeout(function(){
                var imgList = hg.edit.cache['edit-xydzpAgainImg,xydzpCloseImg'];
                imgList[1].hide = !val;
                if(!val){
                    $("#resule-gift-box .resule-gift-home.xydzpAgainImg").show();
                    $("#resule-gift-box .resule-gift-home.xydzpCloseImg").hide();
                }else if(times == 1){
                    $("#resule-gift-box .resule-gift-home.xydzpAgainImg").hide();
                    $("#resule-gift-box .resule-gift-home.xydzpCloseImg").show();
                }
            },0);
        }
        hg.on('isLimit',g.updateAgainImg);

        g.updateContactImg = function(linkInfoType){
            setTimeout(function(){
                //更新可编辑标题列表
                // 1 关闭
                // 2 参与前填写
                // 4 中奖后填写
                var imgList = hg.edit.cache['edit-myAwardImg,contactInfoImg,activeRuleImg'];
                var InfoType = linkInfoType;
                imgList[1].hide = linkInfoType == 1;
            },0);
        }
        hg.on('changeContactImg',g.updateContactImg);

        g.step = function() {
            if(g.running){
                g.ctx.clearRect(-g.w/2,-g.h/2,g.w,g.h);
                g.ctx.save();
                steps.start && g.ctx.rotate( steps.deg );
                g.ctx.drawImage(g.img,-g.w/2,-g.h/2,g.w,g.h);
                g.ctx.restore();
                if(steps.start){
                    steps.now += 2;
                    if (steps.now >= steps.length) {
                        setTimeout(function() {
                            hg.sound.pause(1);
                            HdGame.resulePoup.show(zhuanpanArg);
                        },200);
                        steps.start = g.running = false;
                    }else{
                        steps.deg = steps[steps.now]*Math.PI/180;
                    }
                }
            }
            requestAnimFrame(g.step);
        }

        // 组一个转盘所需要的数据结构
        function setZp(posList,callback){
            var w = g.w ? g.w/2.05 : 7*g_rem;//转盘的宽度
            var partDeg = 360 / posList.length;//平均的角度
            var k = 1/Math.tan(Math.PI/posList.length);//斜率
            var size = w/Math.sqrt((k/2+1)*(k/2+1)+1/4);//当前的这一块面积的大小
            var off = (16*g_rem - size)/2;  
            var y = -(k*size/2 + size/2) + 15;
            $.each(posList,function(index, val) {
                if(!g.openComfort && val == 900) val = 0;
                var deg = (index*partDeg+(index+1)*partDeg)/2;
                var lineDeg = index*partDeg;
                callback(index,val,{
                    size : size,
                    off : off,
                    deg : deg,
                    lineDeg : lineDeg,
                    tranY : y,
                });
            });
        }

        function updateImg(){
            var imgArgList = hg.edit.cache['edit-all'];
            // 增加了转盘和分割线两个元素，所以所有元素的位置往后移两位.
            if(imgArgList){
                imgArgList[9+2].hide = !g.openComfort;
                for (var i = 0; i < 8; i++) {
                    imgArgList[i+2].hide = i + 1 > g.awardNum;
                }
            }
        }

        // 转动转盘
        function start(level) {
            var deg = getDeg(level);
            totalDeg = 360 * 5 + deg;
            var a = 0.01;
            var t = Math.sqrt(2 * totalDeg / a);
            steps.now = steps.deg = steps.length = 0;
            for (var i = 0; i < t; i++) {
                steps.push((2 * a * t * i - a * i * i) / 2);
            }
            steps.push(totalDeg);
            steps.start = true;
            hg.sound.play(1,0,'loop');
            $(".startBtnImg").off("touchend");
            setTimeout(function(){
                //hg.fire("scrollEvent",false);
                $(".startBtnImg").on("touchend",function(){
                    draw();
                });
            },5000);
            // $("#resule-gift-box .resule-gift-home.xydzp_MenuAgain").on("touchend",function(){
            //     hg.fire('scrollEvent',true);
            // });
        }

        // 获取奖品所在的对应角度
        function getDeg(level){
            var posList = prizeDeg[g.awardNum-1];
            var indexList = [];
            $.each(posList,function(index, val) {
                if(!g.openComfort && val == 900) val = 0;
                if(val == level){
                    indexList.push(index);
                }
            });
            var index = indexList[getRandomNum(0,indexList.length-1)];
            var partDeg = 360 / posList.length;
            return 360 - getRandom(index*partDeg+5,(index+1)*partDeg-5);
        }

        // 抽奖
        function draw(){
            if(!g.startStatus) return;
            if (!_manage && isLimitDraw && drawTotalLimit - totalCount == 1){
                $("#resule-gift-box .resule-gift-home.xydzpCloseImg").show();
                $("#resule-gift-box .resule-gift-home.xydzpAgainImg").hide();
                $("#resule-gift-box .resule-gift-home.xydzptwoImg").hide();
            }
            g.startStatus = false;
            luckDraw(function(arg,result){
                zhuanpanArg = arg;
                if (arg.isSuc) {
                    start(result.awardIndex);
                }else{
                    start(0);
                }
            });

            
        }

        function getRandomNum(a,b){
            return a+Math.floor(Math.random()*(b-a+1));
        }

        function getRandom(a,b){
            return a+Math.random()*(b-a);
        }

        $(function(){
            if(_manage){
                HdGame.initModuleLayer('#inner',-1,"",[{
                    from : "#inner img",
                    title : '按钮图片',
                    limit : '5000k',
                    defSrc : "img/startBtn.png",
                }]);
                var newAwardBox = $('#newAwardBox');
                var arr = [0,1,2,3,4,5,6,7,8,900];
                for (var i = 0;i < arr.length;i++) {
                    newAwardBox.append('<img class="zp editTarget-zp'+arr[i]+'">');
                };
                g.setzpByAwardnum();
                hg.on('jsFootEnd',updateImg);
                $("#outerImg").on("load",function(){
                    var theOriginalData = $(this).data("your-Original-Size");
                    if(!theOriginalData){
                        theOriginalData = {width:this.naturalWidth,height:this.naturalHeight};
                    }
                    var nowSize = {width:14.8*g_rem,height:14.8*g_rem};
                    var realSize = HdGame.Img.calcSize(theOriginalData.width,theOriginalData.height,nowSize.width,nowSize.height,HdGame.Img.MODE_SCALE_DEFLATE_FILL);
                    var offset = HdGame.getPosition($(this),nowSize,realSize,true);
                    $(this).css({width:realSize.width,height:realSize.height,left:offset.left+12,top:offset.top});
                    $(this).removeData("your-Original-Size");
                }).addEditUploadFn("recover",function(a,b,c){
                    $(this).data("your-Original-Size",{width:14.8*g_rem,height:14.8*g_rem});
                })
                hg.on("save",function(setting){
                    setting.strp = $("#inner img").attr("src");
                })
            }else{
                hg.assets.onload(function(){
                    g.w = 15.5*g_rem;
                    g.h = 15.5*g_rem;
                    var canvas = $('#outer')[0];
                    if(typeof canvas === 'undefined') return;
                    var ratio = LF.setCanvasePixelRatio();
                    //压缩画布
                    canvas.width = g.w*ratio;
                    canvas.height = g.h*ratio;
                    canvas.style.height = g.w + 'px';
                    canvas.style.width = g.h + 'px';
                    
                    g.ctx = canvas.getContext("2d");
                    g.ctx.translate(g.w/2,g.h/2)
                    var img = hg.assets["//hdg.faisys.com/image/xydzp/rotatePan.png"];
                    img = hg.assets[hg.edit.getImgInfo('rotatePan').path];
                    var lineImg = hg.assets[hg.edit.getImgInfo('deviceLine').path];
                    var cacheCavase = $('<canvas width='+g.w*ratio+' height='+g.h*ratio+' ></canvas>')[0];
                    var cacheCtx = cacheCavase.getContext("2d");
                    var theSize = HdGame.Img.calcSize(img.width,img.height,g.w,g.h,HdGame.Img.MODE_SCALE_DEFLATE_FILL);
                    var posLeft = -g.w/2+(g.w - theSize.width)/2;
                    var posTop = -g.h/2 + (g.h - theSize.height)/2;
                    cacheCtx.translate(g.w/2,g.h/2)
                    cacheCtx.drawImage(img,posLeft,posTop,theSize.width,theSize.height);
                    setZp(prizeDeg[g.awardNum-1],function(index,val,data){
                        var zpImg = hg.assets[hg.edit.getImgInfo('zp'+val).path];
                        var s = HdGame.Img.optimize(zpImg, {width:data.size, height:data.size, mode:HdGame.Img.MODE_SCALE_DEFLATE_FILL},true);
                        cacheCtx.save();
                        cacheCtx.rotate(data.deg*Math.PI/180);
                        cacheCtx.translate(0,data.tranY+9);
                        cacheCtx.drawImage(zpImg,-s.width/2,-s.height/2,s.width,s.height);
                        cacheCtx.restore();
                        // 画线
                        cacheCtx.save();
                        cacheCtx.rotate(data.lineDeg*Math.PI/180);
                        cacheCtx.drawImage(lineImg,0,0,0.08*g_rem,g.w/2-30);
                        cacheCtx.restore();
                    });
                    g.img = cacheCavase;
                    requestAnimFrame(g.step);
                });
                hg.showGameBox = false;
                hg.on('startGame',draw);
                hg.on('startGamehead',function(){
                    if(false && totalCount >= drawTotalLimit){
                        HdGame.statusMsg(6);
                        return false;
                    } 
                    if (count >= drawTimesLimit) {
                        HdGame.statusMsg(4);
                        return false;
                    }
                });
            }
        });

        $("#inner img").off("load").on("load",function(e){
            $(this).addClass("abs");
            var theOriginalData = $(this).data("your-Original-Size");
            var theUrl = theOriginalData ? theOriginalData.path : "//hdg.faisys.com/image/xydzp/startBtn.png";
            var limitWidth = $("#inner").width();
            var limitHeight = $("#inner").height();
            $(this).removeData("your-Original-Size");
            (function(url,lw,lh){
                HdGame.imgReady(url,function(){
                    var limitSize = HdGame.Img.calcSize(this.width,this.height,lw,lh,HdGame.Img.MODE_SCALE_DEFLATE_FILL);
                    var theLeft = (lw - limitSize.width) / 2;
                    var theTop = (lh - limitSize.height) / 2;
                    if(_manage){
                        $("#inner img").css({
                            width : limitSize.width - 10,
                            height: limitSize.height - 22,
                            left  : theLeft + 5.2,
                            top   : theTop 
                        });
                    }
                    else{
                        $("#inner img").css({
                            width : limitSize.width - 18,
                            height: limitSize.height - 26,
                            left  : theLeft + 8,
                            top   : theTop 
                        });
                    }
                })
            })(theUrl,limitWidth,limitHeight)
        }).attr("src","img/startBtn.png");

        $(".awardCloseIcon").on("click",function(){
            if(_manage) return;
            showAward();
        });
        $('#myAwardInfo').on('click','.codeInfoBox .awardInfoDetail',function(event){
            if(_manage) return;
            hg.fire('scrollEvent',false);
            HdGame.openAwardDetail.call($(this).parent(".codeInfoBox"),event);
        });

        //管理态获奖列表模板
        g.exampleList = [{name:"范女神",award:"价值100元礼品"},{name:"小星儿",award:"价值50元礼品"},{name:"LVYD",award:"价值10元礼品"},{name:"萌妹子",award:"价值10元礼品"}];

        //游戏玩家获奖列表
        g.playerAwardList = [];

        //管理态和非管理态的获奖列表不同
        g.List = _manage ? g.exampleList : g.playerAwardList; 

        //初始化获奖轮播，显示前三个
        if(g.List.length > 3 && !_manage){
            var WinnersBoxInfo = "";
            for(var i=0;i<3;i++){
                var userInfo = $.parseJSON(g.List[i].info);
                var headImg = _manage ? 'img/iconImg.png' : userInfo.headImg;
                WinnersBoxInfo += '<div class="uerItem"><img src="'+headImg+'"/><span class="winner" style="color:'+g.winnerColor+'; font-size:'+g.winnerFontSize+'; text-shadow:'+g.winnerShadow+';">'+g.List[i].name+'获得了&nbsp;&nbsp;</span><span class="slideAwardName" style="color:'+g.slideAwardNameColor+'; font-size:'+g.slideAwardNameFontSize+'; text-shadow:'+g.slideAwardNameShadow+';">'+g.List[i].award+'</span></div>';
            }
            $("#winnerSlideBox").html(WinnersBoxInfo);
        }

        //5秒轮播一次
        setInterval(function(){
            if(_manage){
                slide(g.exampleList);
            }else if(!_manage && g.playerAwardList.length > 3){
                slide(g.playerAwardList);
            }
        },5000); 
        if(!_manage && g.playerAwardList.length > 3){
            $("#WinnersBox").removeClass('hideWinnerBox');
        }

        //滑动显示下面三条的获奖记录
        function slide(list){
            if(_manage){
                showAwardAuto_manage(g.startIndex,g.showNum);
            }else{
                showAwardAuto(g.startIndex,g.showNum,list);
            }
            for(var x=0;x<g.showNum;x++){
                g.startIndex++; 
                g.startIndex = g.startIndex > list.length-1 ? 0 : g.startIndex;
            }
        }

        //自动循环轮播获奖信息
        function showAwardAuto(i,j,list){
            //每次插入三条获奖记录，并下滑出现
            var awardList ="";
            var userInfo = $.parseJSON(list[i].info);
            awardList += '<div class="uerItem"><img src="'+userInfo.headImg +'"><span class="winner" style="color:'+g.winnerColor+'; font-size:'+g.winnerFontSize+'; text-shadow:'+g.winnerShadow+';">'+list[i].name+'获得了&nbsp;&nbsp;</span><span class="slideAwardName" style="color:'+g.slideAwardNameColor+'; font-size:'+g.slideAwardNameFontSize+'; text-shadow:'+g.slideAwardNameShadow+';">'+list[i].award+'</span></div>';
            i++; 
            i = i>list.length-1 ? 0 : i;
            var userInfo = $.parseJSON(list[i].info);
            awardList += '<div class="uerItem"><img src="'+userInfo.headImg +'"><span class="winner" style="color:'+g.winnerColor+'; font-size:'+g.winnerFontSize+'; text-shadow:'+g.winnerShadow+';">'+list[i].name+'获得了&nbsp;&nbsp;</span><span class="slideAwardName" style="color:'+g.slideAwardNameColor+'; font-size:'+g.slideAwardNameFontSize+'; text-shadow:'+g.slideAwardNameShadow+';">'+list[i].award+'</span></div>';
            i++; 
            i = i>list.length-1 ? 0 : i;
            var userInfo = $.parseJSON(list[i].info);
            awardList += '<div class="uerItem"><img src="'+userInfo.headImg +'"><span class="winner" style="color:'+g.winnerColor+'; font-size:'+g.winnerFontSize+'; text-shadow:'+g.winnerShadow+';">'+list[i].name+'获得了&nbsp;&nbsp;</span><span class="slideAwardName" style="color:'+g.slideAwardNameColor+'; font-size:'+g.slideAwardNameFontSize+'; text-shadow:'+g.slideAwardNameShadow+';">'+list[i].award+'</span></div>';
            $('#winnerSlideBox').prepend(awardList);
            //添加动画，动画时长0.5s，0.5s后移除动画，并删除出现过的获奖记录节点
            $('#winnerSlideBox').addClass("showAuto");
            setTimeout(function(){
                $('#winnerSlideBox').removeClass("showAuto");
                for(var i=0;i<j;i++){
                    $('.uerItem').eq(3).remove();
                }
            },500);
        }

        function showAwardAuto_manage(i,j){
            //每次插入三条获奖记录，并下滑出现
            var awardList = $('#slideExample').children().clone();
            $('#winnerSlideBox').prepend(awardList);
            //添加动画，动画时长0.5s，0.5s后移除动画，并删除出现过的获奖记录节点
            $('#winnerSlideBox').addClass("showAuto");
            setTimeout(function(){
                $('#winnerSlideBox').removeClass("showAuto");
                for(var i=0;i<j;i++){
                    $('.uerItem').eq(0).remove();
                }
            },500);
        }
    })(GameArg);

    if(!_manage){
        var code = $('#awardDetailBox .codeLine .code').attr('code');
        $.ajax({
            type: "post",
            url: g_config.ajaxUrl + "hdgame_h.jsp?cmd=getGiftList",
            data: {
                gameId: g_config.gameId,
                openId: g_config.openId,
                code: code
            },
            success: function(data) {
                var result = $.parseJSON(data);
                var cusContactList = $.parseJSON(g_config.contactNoDraw);
                var infoStr = "";
                var isShowInfoBox = true;
                if(result.userInfo){
                    $(".contactGroup").empty();
                    for(var i=0;i<cusContactList.length;i++){
                        var cusItem = cusContactList[i];            
                        if(!cusItem.isOpen){
                            continue;
                        }
                        if(result.userInfo[cusItem.key]){
                            infoStr += "<div class='contactItem contact-" + cusItem.key + "'>" + cusItem.name + "： <span>" + result.userInfo[cusItem.key] + "</span></div>";
                        }else{
                            continue;
                        }
                    }
                    if(infoStr == ""){
                        isShowInfoBox = false;
                    }else{
                        $(".contactGroup").html(infoStr);
                    }
                }else{
                    isShowInfoBox = false;
                }
                if(isShowInfoBox){
                    $("#awardContactInfo").show();
                }else{
                    $("#awardContactInfo").hide();
                }
            }
        });

        //避免手机点击图片会放大
        $('#titleBox,#theGetPricePic,#successBgImgBox').on('touchend',function(e){
            return false;
        });
    }else{
        hg.on('showTabByStyle',function(columnList){
            columnList.not('游戏过程','活动奖品','我的奖品');
        });
        $('#skillLine').css('min-height', '1rem');

        $("#successBgImgBox").setResizableOption({
            dxRatio: 2,
        }).addResizableFn('start', function(event, ui) {
            $(this).add($(this).parent()).css({
                'position': 'absolute',
                left: 0,
                top: 0,
            });
        }).addResizableFn('resize', function(event, ui) {
            $("#successBgImgBox").add($("#successBgImgBox").parent()).css({
                'position': 'absolute',
            });
        });

        $('.seeAwardDetailImg').setResizableOption({
            handles: 's,e,w,se,sw',
            dxRatio: 2,
        }).addResizableFn('start', function(event, ui) {
            ui.position.left = 0;
            $(this).add($(this).parent()).css({
                left : 0,
                top: 0,
            });
        }).addResizableFn('resize', function(event, ui) {
            ui.position.left = 0;
            $("#seeAwardDetailImg").add($("#seeAwardDetailImg").parent()).css({
                left: 0,
                top: 0,
            });
        });

        $(".center_txt").setResizableOption({
            containment: '.theTextLimitBox',
        }).setDraggableOption({
            containment: '.theTextLimitBox',
        });

        top.$("#editPoup_edit").on("click.control",".cssSelf,#edit_defaultSkill,#edit_hideSkill,#edit_selfSkill",function(){
            if(GameArg.isInterval){
                return;
            }else{
                interval_Controller(true);
                GameArg.isInterval = true;
            }
        });
        top.$("#editPoup_edit").on("click",".closeBtn",function(){
            interval_Controller(false);
            GameArg.isInterval = false;
        });
        top.$(".bg-mask").on("click",function(){
            interval_Controller(false);
            GameArg.isInterval = false;
        });

        setTimeout(function(){
            $(".ruleBoxBg").height($("#actExplain").outerHeight());
            $(".infoBoxBg").height($("#awardContactInfo").outerHeight());
            $(".awardBoxBg").height($("#myAwardBox").outerHeight());
        },2000);

        function interval_Controller(flag){
            if(flag){
                GameArg.interval = setInterval(function(){
                    $(".ruleBoxBg").height($("#actExplain").outerHeight());
                    $(".infoBoxBg").height($("#awardContactInfo").outerHeight());
                    $(".awardBoxBg").height($("#myAwardBox").outerHeight());
                },100);
            }else{
                clearInterval(GameArg.interval);
            }
        }
    }
    setTimeout(function(){
        hg.fire('scrollEvent',true);
    },500);

    if(_manage || tryPlay){
        $(".home").width($(".home").width()+HdGame.getScrollWidth());
    }
})();
function home(){
    if(!_manage && GameArg.img){
        GameArg.running = true;
    }
    GameArg.startStatus = true;
    $("#inner-cont").show();
    $("#contentArea").show(); 
    $('#poupInfoBox').hide();
    $('.resuleBox').hide();
    //$('#ruleImg').show();
    $('.homeBtnBox').show();
    $('.footerBox').show();
    $('.content').removeClass('poupFooter');
    if(false){
        $("#placeHolder").show();
    }
    hg.fire('home');
}
</script>

<script type="text/javascript">
    HdGame.tlog((g_config.isAOpenId == 0 ? "A" : "B")+"类openId");
    var count = 0;
    var drawTimesLimit = 3;
    var drawTotalLimit = 6;
    var drawTimesLimitShow = 3;
    var drawTotalLimitShow = 6;
    var playTimesLimit = 5;
    var playTotalLimit = 10;
    var totalCount = 0;
    var isLimitDraw = false;
    var isLimitPlay = false;
    var showAwardList = false;
    var informNum = 0;
    var playerAwardList = [];
    var skillSupportType = 2;
    var skillName = HdGame.decodeHtml('凡科互动');
    var skillLink = HdGame.decodeUrl(HdGame.decodeHtml('http://mp.weixin.qq.com/s?__biz=MjM5MTk5MjI3OA==&amp;mid=209854000&amp;idx=1&amp;sn=82241d924839270d3ea820ad2d56c01b#wechat_redirect'));
    var gameType = 0;
    var rankShowNum = 100;
    var helpType = 1;
    var addDrawTime = 1;
    var remainHelpNum = 10;
    PlayInfo.initData(0,0,5,5,10,false);
    //改版前的联系兑奖提示语
    HdGame._awardLinkMsg = '获奖者需填写联系电话方可查看兑奖码兑奖';
    HdGame._luckDrawFunc = luckDraw;
    
    if(false){
        $(".titleImg").addClass("hideTitleImg");
    }

    if(!_manage){
        if(false){
            HdGame._luckDrawFunc = luckDrawZhuli;
        }else if(false){
            HdGame._luckDrawFunc = luckDrawZhuliNew;
        }
    }
    if(false){
        $('.bottomSkill').html("页面技术由 爱游戏&凡科互动 提供");
    }

    if(false){
        $('#awardContactInfo').remove();
    }
    HdGame.initChangePoup({
        rankUrl        : '//yx.hd.fkw.com/ajax/hdgame_h.jsp?cmd=getRankList&aid=13751381&gameId=4&style=75&openId=manager',
        awardUrl       : '//yx.hd.fkw.com/ajax/hdgame_h.jsp?cmd=getGiftList&aid=13751381&style=75',
        getRegAwardUrl : '//yx.hd.fkw.com/ajax/hdgame_h.jsp?cmd=getRegAwardList&aid=13751381&gameId=4&style=75&openId=manager',
        openId         : 'manager',
        gameId         : 4,
        mhaveScore     : (false && gameType != 3),
        informUrl      : '//yx.hd.fkw.com/ajax/hdgame_h.jsp?cmd=setInformNum&aid=13751381&gameId=4&openId=manager',
        hasReport      : false,
        afterWxCard    : true
    });
    HdGame.resulePoup.init({
        drawType  : 0,
        checkRegUrl:'//yx.hd.fkw.com/ajax/hdgame_h.jsp?cmd=checkRegNum&aid=13751381&gameId=4&openId=manager',  
        regUrl    : '//yx.hd.fkw.com/ajax/hdgame_h.jsp?cmd=setPlayerReg&aid=13751381&gameId=4&openId=manager&flag1=true',
        home      : typeof home !== 'undefined' ? home : null,
        again     : typeof gameRestart !== 'undefined' ? gameRestart : null,
        giftInit  : HdGame._luckDrawFunc,
    });
   HdGame.initJsFoot({"rulesortstr":"abcde","drawType":0,"hostName":"-","hostLink":"","menuLink":"//hd.faisys.com/image/qrcodeImg.jpg","fromFav":"","openAwardExp":true,"isHideFxts":true,"supportUrl":"http://mp.weixin.qq.com/s?__biz=MjM5MTk5MjI3OA==&mid=209854000&idx=1&sn=82241d924839270d3ea820ad2d56c01b#rd","isAdverQRCode":false,"skillSupport":"凡科互动","showJoinNum":true,"showRedDot":false,"showMDRedDot":false,"showAwardBtn":false,"isSelAwardLine":false,"showSkillSup":true,"menuStyle":3,"soundIcon_l":"0.75rem","soundIcon_t":"1rem","titleImg_path_def":"//hdg.faisys.com/image/xydzp/title.png","startImg_path_def":"","awardIconImgPath_def":"https://hdg.faisys.com/image/ruleImg_yellow.png","titleImg_w_def":"14.7rem","titleImg_h_def":"5.8rem","startBtn_w_def":"5.6rem","startBtn_h_def":"6.45rem","logoImg_w_def":"2rem","logoImg_h_def":"2rem","awardIcon_w_def":"3rem","awardIcon_h_def":"3rem","homeBgPath_def":"//hdg.faisys.com/image/xydzp/homeBg.jpg","gameBg2Path_def":"","gameBgPath_def":"","headImg2":"//hdg.faisys.com/image/girlImg.jpg","headImg3":"//hdg.faisys.com/image/headImg1.jpg","headImg4":"//hdg.faisys.com/image/headImg2.jpg","dangerType":0,"isZhuLi":false,"getRegAwardUrl":"//yx.hd.fkw.com/ajax/hdgame_h.jsp?cmd=getRegAwardList&aid=13751381&gameId=4&style=75&openId=manager"})

    function startBtnDelay(){
        $('.titleImg').removeClass('titleDown').addClass('titleDown');
        $('#startBtnImg').removeClass('startTada');
        
        var soundPauseCord = 'soundPause|13751381|4|manager';
        if((false || false) && !HdGame.getLocalStorage(soundPauseCord) && true){               
            hg.sound.allowPlay = true;
        }
        hg.sound.readyPlay(0,0,'loop');
        
        setTimeout(function(){
            $('#startBtnImg').addClass('startTada');
        },1000);  
    }
    function showAwardDetail4Draw(fromFav){
        HdGame.changePoup(3,'',true);
        home('showAward',fromFav);
        if(g_config.isYKY){
            $('#poupInfoBox').show();
        }
    }
    
    function showRank(){
        HdGame.changePoup(1,'',true);
        $('#awardDetailBox').hide();
    }
    function showRule(isAnimation){
        $('#activityKit').hide();
        if(g_config.withAwardFinish){
            HdGame.changePoup(2,'',true);
        }else{
            HdGame.changePoup(2,'',isAnimation);
        } 
        $('#awardDetailBox').hide();
    }    
    function activateSound(){ //兼容ios下 WebAudio类型的对象无法自动播放，必须在点击事件中播放过一次，才允许播放
        try{
            if(HdGame.isIPhone() && hg.sound.list && hg.sound.list.length > 0 && !hg.sound._activate){ 
                $.each(hg.sound.list, function(i, val) {
                    var data = hg.sound.cache[i];
                    if(i > 0 && data && data.soundType == "LWebAudio"){
                        data.play();
                        data.stop();
                    }
                });
                hg.sound._activate = true;
            }
        }catch(e){
            HdGame.logStd("activateSoundErr",e);
        }
    }
    function startBtnAjax(event,data,callBack,pass){
        var that = this;
        if(!pass){
            activateSound();
            if(g_config.isOpenAreaLimit){
                return HdGame.getAreaByWx(g_config.ipInfo,function(){
                    HdGame.Res.load("js_city").then(function () {
                        if( checkAreaLimit(g_config.ipInfo,g_config.areaLimitList) != 'ok' ){ //不在限制的地区内，直接返回
                            return rt(false);
                        }
                        return startBtnAjax.call(that,event,data,callBack,true); 
                    });
                });
            }
        }
        if(false){
            HdGame.statusMsg(0);
            hg.sound.allowPlay = false;
            hg.sound.pauseAll();
            return rt(false);
        }
        if(!hg.fireWith('startGamehead',that,[event,data])){
            return rt(false);
        }
        if((g_config.style==71 && data) || g_config.style!=71){//参团者不走建团限制逻辑
            if (HdGame.getIsOutofJoinNumFlowFlag) {
                return rt(false);
            }
            if (!HdGame.isGetIsOutofJoinNumFlag && !HdGame.getIsOutofJoinNumFlowFlag) {
                HdGame.getIsOutofJoinNumFlowFlag = true;
                return HdGame.getIsOutofJoinNumFlag(function(flag){
                    HdGame.getIsOutofJoinNumFlowFlag = false;
                    if (flag == 'error') {
                        hg.fire("luckDrawErr"); 
                        return rt(false);
                    }
                    HdGame.isGetIsOutofJoinNumFlag = true;
                    HdGame.isOutofJoinNum = (flag == 'true' ? true :false);
                    return startBtnAjax.call(that,event,data,callBack,true);
                })
            }
            if(HdGame.isOutofJoinNum){
            
                if(false || false){//报名型游戏
                    
                        HdGame.statusMsg("本活动参与人数已达到最大限制。如有疑问，请与主办方联系。");
                    
                    
                }else{
                    if(false){
                        HdGame.statusMsg("本活动建团数量已达到最大限制。如有疑问，请与主办方联系。");
                    }
                    else{
                        HdGame.statusMsg("本活动参与人数已达到最大限制。如有疑问，请与主办方联系。");
                    }
                }
                return rt(false);
            }
        }
        
        if(false){
            HdGame.statusMsg('你有疑似作弊行为，已被列入黑名单','');
            return rt(false);
        }
        
        
        if(g_config.afterLinkModify && HdGame.shouldRegInfo(2,arguments,this)){
            return rt(false);
        }
        
        
        if( gameType == 3 && g_config.isCheckPlayTimes && PlayInfo.getTotalRemainTimes() <= 0 ){
            HdGame.statusMsg(8);
            return rt(false);
        }
        if( gameType == 3 && g_config.isCheckPlayTimes && PlayInfo.getTodayRemainTimes() <= 0 ){
            HdGame.statusMsg(7);
            return rt(false);
        }
        
        if(!hg.fireWith('beforeStartGame',that,[false,event,data])){
            return rt(false);
        }
        hg.showGameBox && showGame();
        console.log("showGameBox: "+hg.showGameBox);
        if (false) HdGame.logDog(1000240, 1 + 3);
        HdGame.logDog(1000002, 75);
        HdGame.logDog(1000179, g_config.authVer + 1);
        if(isJoinThemeGame){
            HdGame.logDog(1000219, 3 + g_config.isAOpenId);
        }
        HdGame.logObjDog(1000092, 1, 4);
        
            HdGame.addJoinGameBehavior();
        
        HdGame.setCookie('gps_province',HdGame.encodeUrl(g_config.ipInfo.provice),1);
        HdGame.setCookie('gps_city', HdGame.encodeUrl(g_config.ipInfo.city),1);
        var cookOpt = {};
        cookOpt.domain=HdGame.gameDomain;
        cookOpt.expires=1;
        cookOpt.path="/";
        $.cookie('gps_province',HdGame.encodeUrl(g_config.ipInfo.provice),cookOpt);
        $.cookie('gps_city',HdGame.encodeUrl(g_config.ipInfo.city),cookOpt);
        hg.fireWith('startGame',that,[false,event,data,showGame]);
        return rt(true);
        function rt(r){
            callBack && callBack.call(that,r,event,data,showGame);
            return r;
        }
        function showGame(){
            if(false)return;
            $('.homeBtnBox,.bottomSkill').hide();
            $('.footerBox').hide(); 
            $('.home,#ruleImg').hide();
            $('.gameBox').show();
            if(typeof hg.sound.cache[0] !== 'undefined' && typeof hg.sound.cache[0].playing !== 'undefined' && !hg.sound.cache[0].playing && g_config.style != 48 && g_config.style != 49 && g_config.style != 69){
                hg.sound.readyPlay(0,0,'loop');
            }
        }
    }

    function removeBgFrame(){
        HdGame.removeMoveFrame('homeBgBox');
        HdGame.removeMoveFrame('gameBgBox');
    }
    
    function showAwardDetail(){
        if(g_config.isAngular){
            if(!showAwardDetail.hasInit){
                HdGame.openAwardDetail();
                showAwardDetail.hasInit = true;
            }
        }
        var awardDetailBox = $('#awardDetailBox');
        awardDetailBox.find('.codeImg').attr('src','http://'+HdGame.gameDomain+'/manage/qrCode.jsp?cmd=qrurl&siteUrl=888888');
        awardDetailBox.find('.code').html(888888);
        $('#poupInfoBox').hide();
        $('.resuleBox').hide();
        awardDetailBox.show();
    }

    function showResult(isSuc){
        $('#poupInfoBox').hide();
        $('#resule-gift-box').hide();
        $('#rank_showRule').hide();
        g_config.isSuc = isSuc;
        if(isSuc){
            
            if(gameType == 0 || gameType == 4){
                $("#drawMenuBtnBox").toggleClass("hide",true);
            }
        }else{
            if(gameType == 0){
                $("#drawMenuBtnBox").toggleClass("hide",true);
                $('#minscoreDrawFont').html('抽奖');
            }else if(gameType == 4){
                $("#drawMenuBtnBox").toggleClass("hide",true);
                $('#minscoreDrawFont').html('领取奖品');
            }else if(gameType == 1){
                $('#minscoreDrawFont').html('报名参与活动');
            }
            $("#resule-sucReg").hide();
            $('.resule-foot-one .resule-status-again').html('再玩一次');
        }
        HdGame.resulePoup.showResult({
            isSuc:isSuc,
            gameScore:gameType == 3 && !isSuc? 'fail':999,
            minScore:$('#scoreLimit').text(),
            bestScore:999,
            rank:1,
            count:drawTimesLimit,
            gameType:gameType,
            isLimitDrawTotal:isLimitDraw,
            totalCount: drawTotalLimit,
            beat: 99,
            isEqualDraw:false
        });
        $('#awardDetailBox').hide();
    }
    function showDraw(isSuc){
        var index = parent.game.$checkeIndex;
        var award = parent.awardList[index];
        var awardDef = parent.gameDef._awardList[index];
        var awardImage = award.aimg || awardDef.aimg;
        var awardImage_w = award.aimgw || awardDef.aimgw;
        var awardImage_h = award.aimgh || awardDef.aimgh;
        $('#poupInfoBox').hide();       
        $('#resule-status-box').hide();
        $('#resule-gift-box .attentionBox').show();         
        HdGame.resulePoup.showGift({
            isSuc : isSuc,
            level : 1,
            giftName : award.name,
            giftCode : 888888,
            giftStyle : award.style,
            count : drawTimesLimit,
            giftImage : awardImage,
            awardImageW : awardImage_w,
            awardImageH : awardImage_h,
            awardTypeNum : award.awardtype
        });
        $('#awardDetailBox').hide();
    }
    function showShakePage(){
        $('#poupInfoBox').hide();
        $('#resule-gift-box').hide();
        $('#rank_showRule').hide();
        $('.resuleBox,#resule-status-box,#resule-status-lotsBox').show();
        $('#resule-status-scrollWrap').hide();
        $('#awardDetailBox,#drawMenuBtnBox').hide();
    }


function checkAreaLimit(ipInfo,areaLimitList,isShowMsg){
    isShowMsg = isShowMsg !== false;
    var now_province = ipInfo.provice;
    var now_city = ipInfo.city;
    if(areaLimitList.length > 0){
        if( now_province && now_city ){ //有当前地理位置信息
            var isLimit = true;
            for(var i = 0; i < areaLimitList.length; i++){
                var info = site_cityUtil.getInfo(areaLimitList[i]);
                if(info.parentId == 1){
                    if(info.name.indexOf(now_province) > -1 || now_province.indexOf(info.name) > -1){
                        isLimit = false;
                        break;
                    }
                }else{
                    if(info.name.indexOf(now_city) > -1 || now_city.indexOf(info.name) > -1){
                        isLimit = false;
                        break;
                    }
                }
            }
            if(isLimit){
                isShowMsg && HdGame.statusMsg('您当前所在的地区（' + now_city + '）不在可参与区域范围','');
                return 'limit';
            }
        }else{ //没有查到当前ip信息，显示服务繁忙
            HdGame.logStd("ipInfo", ipInfo);
            isShowMsg && HdGame.statusMsg("服务繁忙，请稍候重试",'');
            return 'busyness';
        }
    }
    return 'ok';
} 

hg.on('beforeDraw',function(_arguments){
    var thisInfoType = 2;
    console.log(thisInfoType,_arguments)
    if(g_config.afterLinkModify && HdGame.shouldRegInfo(thisInfoType,_arguments,this)){
        
        return false;
    }
    thisInfoType = 3;
    if(g_config.afterLinkModify && HdGame.shouldRegInfo(thisInfoType,_arguments,this)){
        
        return false;
    }
}).on('luckDrawErr',function(){
    HdGame.showMsg("网络无法连接，请检查网络",0,"关闭",function(){
        HdGame.resulePoup.startStatus = true;
    },true);
});

var drawStatusLuckDraw = true;
function luckDraw(fn,option,pass){

}
function luckDrawZhuliNew(fn,option){
    if(!drawStatusLuckDraw || _manage){
        return;
    }
    HdGame.showLoadToast('数据加载中');
    drawStatusLuckDraw=false;
    $('.ajaxLoadBg').show();
    $('.ajaxLoadBar').addClass('ajaxLoad'); 
    var params = {
        gameId: 4,
        zlid: g_config.style == 61 ? zlid : -1,
        city_gps: typeof g_config.ipInfo.city != 'undefined' ? g_config.ipInfo.city : '',
        province_gps: typeof g_config.ipInfo.provice != 'undefined' ? g_config.ipInfo.provice : ''
    };
    $.extend(params,option);
    $.ajax({                
        type : 'post',
        url : '//yx.hd.fkw.com/ajax/hdzhuli_h.jsp?cmd=getResult&aid=13751381&openId=manager',
        data : params,
        error : function(err,errObj){ 
            if(m_debug){
                alert( '服务繁忙，请稍候重试' ); 
            }
            HdGame.hideLoadToast();
            HdGame.otherAjaxComplete();
            drawStatusLuckDraw=true;
            hg.fire("luckDrawErr"); 
        },
        success : function(data){
            HdGame.hideLoadToast();
            HdGame.tlog('luckDrawZhuliNew',data);
            HdGame.otherAjaxComplete();     
            drawStatusLuckDraw=true;
            var result = $.parseJSON(data);
            setNoLiheWxShare && setNoLiheWxShare();
            if(result.success){
                g_config.haveAward = true;
            }else if(result.rt === 60 ||  result.rt === 28){
                $('.resule-status-box').hide()
            }else if(result.rt === 3){
                $(".resule-status-box").show();
            }else{
                if( result.rt === 8 || result.rt === 23 || result.rt === 35 || result.rt === 46){
                    HdGame.statusMsg(result.msg);
                }else{
                    HdGame.showMsg("系统繁忙，请稍后重试",0,"关闭",function(){},true);  
                }
                return;                   
            }
            var arg={
                isSuc:result.success,
                giftStyle:result.awardStyle,
                giftName:result.awardName,
                giftCode:result.awardCode,
                giftImage:result.awardImage,
                awardImageW:result.awardImageW,
                awardImageH:result.awardImageH,
                awardIndex:result.awardIndex,
                isOutAwardNum:result.rt === 3,
            };
            if(HdGame.getType(fn) === 'function'){
                fn(arg,result);
            }else{
                HdGame.resulePoup.show(arg);
            }
        }
    });
}
var createActiveForMinapp = $.throttle(function(){
    HdGame.logDog(1000260, 2);  //点击马上创建log
    wx.miniProgram.redirectTo({url: '/pages/editActive/editActive?page=base&modId=0'});
}, 200);

var shareActiveForMinapp = $.throttle(function(){
    wx.miniProgram.navigateTo({url: '/pages/shareActive/shareActive?aid=13751381&gameId=4'});
}, 200);

function getMoreTimes(){
    if(false && totalCount >= drawTotalLimit){
         HdGame.statusMsg(6);
         return;
    }
    if (count >= drawTimesLimit) {
         HdGame.statusMsg(4);
         return;
    }
}

$(function(){
    /**
     * 管理态监听编辑也顶部导航的chagne事件
     */
    
    hg.on("changeTopBar", function (name) {
        $(".advertisingBox").toggleClass("hide", name != "广告页");
        $("#accessKeyPopup").toggleClass("hide", name != "访问密钥");
    }).on("bannerNumberChange", function (prop, val) {
        var pagination = $("." + prop + " .swiper-number-pagination");
        pagination.toggleClass("hide", val <= 1);
        pagination.text("1/" + val);
    });
    
    /**
     * 管理态监听广告修改的事件
     */
    
    var $advertisingBox = $(".advertisingBox");
    var $skipTips = $(".skipTips");
    var $seconds = $skipTips.find(".seconds");
    var $skipTipsText = $skipTips.find(".skipTipsText");
    var advertisingSettingMap = {
        // 修改强制观看
        changeForce: function changeForce (forceWatch, displayLimit) {
            $skipTipsText.text((forceWatch && displayLimit) ? "" : "跳过");
        },
        // 修改广告时间
        changeTime: function changeTime (time) {
            if (time) {
                time += "秒";
            }

            $seconds.text(time);
        },
        // 修改广告数量或展示方式
        changeNumberOrModel: function changeNumberOrModel (model, number, oldNumber) {
            var $pagination = $(".advertisingBox .swiper-pagination");
            $pagination.toggleClass("hide", number === 1 || model !== 0);
            $pagination.find(".swiper-pagination-bullet").each(function (index) {
                var num = number - 1;
                $(this).toggleClass("hide", number === 1 || index >= number);
                if (oldNumber != null && oldNumber > number && num === index) {
                    if (num <= $pagination.find(".swiper-pagination-bullet-active").index(".swiper-pagination-bullet")) {
                        $(this).click();
                    }
                }
            });

        }
    }
    if (g_config.advertisingDisplayModel === 0 && 1 > 1) {
        $advertisingBox.find(".swiper-pagination").removeClass("hide");
    }
    hg.on("advertisingSetting", function (name) {
        advertisingSettingMap[name].apply(null, Array.prototype.slice.call(arguments, 1));
    });
    

    if(_manage){
        $("#resule-gift-sucImg").parent().append('<span class="hd-left-arrow theArrowSpan hide"></span><span class="hd-right-arrow theArrowSpan hide"></span>');
    }else{
        HdGame.showWxCodePage(null, "http://m.faibak.com/hd/manage/myCardBag.jsp", "http://yx.hd.fkw.com/xydzp.jsp?_manage=d&aid=13751381&style=75&tplId=-1&gameType=0&id=4&isVersion3=true");
        HdGame.tlog('history',history.length);
    }
    HdGame.imgReady("https://hdg.faisys.com/image/ruleImg_yellow.png",function(){
        var originSize = {width:$("#ruleImg").width(),height:$("#ruleImg").height()};
        var nowSize = HdGame.Img.calcSize(this.width,this.height,originSize.width,originSize.height,HdGame.Img.MODE_SCALE_DEFLATE_FILL);
        $("#ruleImg").css({
            "background-size": "100% 100%",
            "background-image":"url("+"https://hdg.faisys.com/image/ruleImg_yellow.png"+")",
        }).attr("_src","https://hdg.faisys.com/image/ruleImg_yellow.png");
    });

    
    /*
    if(!_manage && !g_config.showSkillSup){
        HdGame.forbinSlide();
    }
    */
    

    hg.fire('jsFootEnd');   
});
</script>

<script type="text/javascript">
    
</script>
</body>
</html>